Upgraded Rails
[monkeycharger.git] / vendor / rails / actionpack / test / controller / fake_controllers.rb
blob5f958b284559e2aa690148d2ff5f188b254a005b
1 class << Object; alias_method :const_available?, :const_defined?; end
2   
3 class ContentController < Class.new(ActionController::Base)
4 end
5 class NotAController
6 end
7 module Admin
8   class << self; alias_method :const_available?, :const_defined?; end
9   class UserController < Class.new(ActionController::Base); end
10   class NewsFeedController < Class.new(ActionController::Base); end
11 end
13 ActionController::Routing::Routes.draw do |map|
14   map.route_one 'route_one', :controller => 'elsewhere', :action => 'flash_me'
15   map.connect ':controller/:action/:id'
16 end