aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/fake_controllers.rb
blob: 28136e09e8233ba14a9dfd990c9f97d7738d796c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module Object::Controllers
  def self.const_available?(*args)
    const_defined?(*args)
  end
  
  class ContentController < ActionController::Base
  end

  module Admin
    def self.const_available?(*args)
      const_defined?(*args)
    end
    
    class UserController < ActionController::Base
    end
    class NewsFeedController < ActionController::Base
    end
  end
end

ActionController::Routing::Routes.draw do |map|
  map.route_one 'route_one', :controller => 'elsewhere', :action => 'flash_me'
  map.connect ':controller/:action/:id'
end