2006-02-04 18:09:26 -05:00
|
|
|
class << Object; alias_method :const_available?, :const_defined?; end
|
2005-07-15 11:00:39 -04:00
|
|
|
|
2006-02-04 18:09:26 -05:00
|
|
|
class ContentController < Class.new(ActionController::Base)
|
|
|
|
end
|
2006-02-04 18:59:37 -05:00
|
|
|
class NotAController
|
|
|
|
end
|
2006-02-04 18:09:26 -05:00
|
|
|
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
|
2005-07-15 11:00:39 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
ActionController::Routing::Routes.draw do |map|
|
2005-08-06 04:37:25 -04:00
|
|
|
map.route_one 'route_one', :controller => 'elsewhere', :action => 'flash_me'
|
2005-07-15 11:00:39 -04:00
|
|
|
map.connect ':controller/:action/:id'
|
|
|
|
end
|