Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 30 lines (23 sloc) 0.421 kB
accd9b4 @josh Restore "Start Rails::Application object
josh authored
1 module Rails
2 class Application
6f6a589 Create the application object from config/environment.rb
Yehuda Katz + Carl Lerche authored
3
c9d4529 Change Rails::Application to a class that is inherited from.
Carl Lerche authored
4 def self.config
5 @config ||= Configuration.new
6 end
7
8 def self.config=(config)
9 @config = config
10 end
11
12 def config
13 self.class.config
6f6a589 Create the application object from config/environment.rb
Yehuda Katz + Carl Lerche authored
14 end
a6757a0 @josh Move middleware and route configuration from AC::Dispatcher to Rails …
josh authored
15
6b08644 Fix the broken railties isolation tests
Carl Lerche authored
16 def routes
17 ActionController::Routing::Routes
accd9b4 @josh Restore "Start Rails::Application object
josh authored
18 end
19
6f6a589 Create the application object from config/environment.rb
Yehuda Katz + Carl Lerche authored
20 def middleware
21 config.middleware
22 end
23
accd9b4 @josh Restore "Start Rails::Application object
josh authored
24 def call(env)
c9d4529 Change Rails::Application to a class that is inherited from.
Carl Lerche authored
25 @app ||= middleware.build(routes)
accd9b4 @josh Restore "Start Rails::Application object
josh authored
26 @app.call(env)
27 end
28 end
29 end
Something went wrong with that request. Please try again.