mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
50e2474433
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1971 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
24 lines
550 B
Ruby
24 lines
550 B
Ruby
module Object::Controllers
|
|
def self.const_available?(*args)
|
|
const_defined?(*args)
|
|
end
|
|
|
|
class ContentController < ActionController::Base
|
|
end
|
|
|
|
module Admin
|
|
def self.const_available?(*args)
|
|
const_defined?(*args)
|
|
end
|
|
|
|
class UserController < ActionController::Base
|
|
end
|
|
class NewsFeedController < ActionController::Base
|
|
end
|
|
end
|
|
end
|
|
|
|
ActionController::Routing::Routes.draw do |map|
|
|
map.route_one 'route_one', :controller => 'elsewhere', :action => 'flash_me'
|
|
map.connect ':controller/:action/:id'
|
|
end
|