mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
5450538563
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3542 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
16 lines
553 B
Ruby
16 lines
553 B
Ruby
class << Object; alias_method :const_available?, :const_defined?; end
|
|
|
|
class ContentController < Class.new(ActionController::Base)
|
|
end
|
|
class NotAController
|
|
end
|
|
module Admin
|
|
class << self; alias_method :const_available?, :const_defined?; end
|
|
class UserController < Class.new(ActionController::Base); end
|
|
class NewsFeedController < Class.new(ActionController::Base); end
|
|
end
|
|
|
|
ActionController::Routing::Routes.draw do |map|
|
|
map.route_one 'route_one', :controller => 'elsewhere', :action => 'flash_me'
|
|
map.connect ':controller/:action/:id'
|
|
end
|