root/trunk/vendor/rails/actionpack/test/controller/fake_controllers.rb @ 58

Revision 58, 0.5 KB (checked in by dema, 7 years ago)

Updating to Rails 1.1.2

RevLine 
[58]1class << Object; alias_method :const_available?, :const_defined?; end
2 
3class ContentController < Class.new(ActionController::Base)
4end
5class NotAController
6end
7module 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
11end
12
13ActionController::Routing::Routes.draw do |map|
14  map.route_one 'route_one', :controller => 'elsewhere', :action => 'flash_me'
15  map.connect ':controller/:action/:id'
16end
Note: See TracBrowser for help on using the browser.