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