aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/fake_controllers.rb
blob: 5f958b284559e2aa690148d2ff5f188b254a005b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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