Skip to content
Newer
Older
100644 52 lines (42 sloc) 1.84 KB
e749424 Rename rails.rb -> rails/all.rb and rails/core.rb -> rails.rb
Carl Lerche authored Dec 31, 2009
1 require "rails"
fc4582f Final pass at removing the router from a global constant
Carlhuda authored Feb 25, 2010
2 require "action_controller"
395d664 @josevalim Move application configuration to the application configuration objec…
josevalim authored Mar 26, 2010
3 require "action_dispatch/railtie"
23ad1ef @jeremy Rationalize railtie dependencies: AC uses AV; AR uses AMo; and Rails …
jeremy authored Feb 4, 2010
4 require "action_view/railtie"
4131a2d @drogus Move ActionController::Railties::RoutesHelpers and ActionMailer::Rail…
drogus authored Aug 2, 2010
5 require "abstract_controller/railties/routes_helpers"
e5af8b7 @drogus Moved ActionMailer and ActionController railties options to inherited…
drogus authored Aug 6, 2010
6 require "action_controller/railties/paths"
a23f4b6 Add a /rails.rb for each framework for consistency
Carl Lerche authored Dec 31, 2009
7
38aeb15 Moving out some framework specific initializers into the framework li…
Carlhuda authored Dec 23, 2009
8 module ActionController
ae7ada1 Some railties cleanup:
Carl Lerche authored Dec 31, 2009
9 class Railtie < Rails::Railtie
395d664 @josevalim Move application configuration to the application configuration objec…
josevalim authored Mar 26, 2010
10 config.action_controller = ActiveSupport::OrderedOptions.new
fc4582f Final pass at removing the router from a global constant
Carlhuda authored Feb 26, 2010
11
4163cce @josevalim Clean up the config object in ActionPack. Create config_accessor whic…
josevalim authored Apr 22, 2010
12 initializer "action_controller.logger" do
13 ActiveSupport.on_load(:action_controller) { self.logger ||= Rails.logger }
d2bd71a Finish moving config.frameworks-dependent code to the framework plugin
Carlhuda authored Dec 23, 2009
14 end
6404fee @josevalim AC railtie should configure helpers path.
josevalim authored Jan 26, 2010
15
4163cce @josevalim Clean up the config object in ActionPack. Create config_accessor whic…
josevalim authored Apr 22, 2010
16 initializer "action_controller.initialize_framework_caches" do
17 ActiveSupport.on_load(:action_controller) { self.cache_store ||= RAILS_CACHE }
6404fee @josevalim AC railtie should configure helpers path.
josevalim authored Jan 26, 2010
18 end
fc4582f Final pass at removing the router from a global constant
Carlhuda authored Feb 26, 2010
19
3375a09 @spastorino Rails initialization with initialize_on_precompile = false should set…
spastorino authored Jan 10, 2012
20 initializer "action_controller.assets_config", :group => :all do |app|
21 app.config.action_controller.assets_dir ||= app.config.paths["public"].first
22 end
23
76b6136 @josevalim Clean up AM and AC railties.
josevalim authored Jul 24, 2010
24 initializer "action_controller.set_configs" do |app|
98ab4de @drogus Set only helpers_path on inherited hook in action_controller/railtie.…
drogus authored Aug 23, 2010
25 paths = app.config.paths
26 options = app.config.action_controller
27
d649bf1 @josevalim Provide a cleaner syntax for paths configuration that does not rely o…
josevalim authored Oct 6, 2010
28 options.javascripts_dir ||= paths["public/javascripts"].first
29 options.stylesheets_dir ||= paths["public/stylesheets"].first
30 options.page_cache_directory ||= paths["public"].first
98ab4de @drogus Set only helpers_path on inherited hook in action_controller/railtie.…
drogus authored Aug 23, 2010
31
918dc27 @thedarkone Compile ActionController::Base.config's methods to avoid method_missi…
thedarkone authored Sep 27, 2010
32 # make sure readers methods get compiled
8e6d276 @josevalim Clean up asset_host and asset_path.
josevalim authored Dec 9, 2010
33 options.asset_path ||= app.config.asset_path
34 options.asset_host ||= app.config.asset_host
5266eb9 @pokonski Default relative_url_root to ENV["RAILS_RELATIVE_URL_ROOT"]. Fixes #3365
pokonski authored Dec 12, 2011
35 options.relative_url_root ||= app.config.relative_url_root
918dc27 @thedarkone Compile ActionController::Base.config's methods to avoid method_missi…
thedarkone authored Sep 27, 2010
36
4aded43 @wycats Replace the placeholder base_hook API with on_load. To specify some c…
wycats authored Mar 29, 2010
37 ActiveSupport.on_load(:action_controller) do
18aee33 @drogus Do not require passing :app to mounted helpers, it's actually useless…
drogus authored Sep 6, 2010
38 include app.routes.mounted_helpers
e5af8b7 @drogus Moved ActionMailer and ActionController railties options to inherited…
drogus authored Aug 6, 2010
39 extend ::AbstractController::Railties::RoutesHelpers.with(app.routes)
40 extend ::ActionController::Railties::Paths.with(app)
98ab4de @drogus Set only helpers_path on inherited hook in action_controller/railtie.…
drogus authored Aug 23, 2010
41 options.each { |k,v| send("#{k}=", v) }
39d6f9e @wycats Make many parts of Rails lazy. In order to facilitate this,
wycats authored Mar 7, 2010
42 end
76b6136 @josevalim Clean up AM and AC railties.
josevalim authored Jul 23, 2010
43 end
918dc27 @thedarkone Compile ActionController::Base.config's methods to avoid method_missi…
thedarkone authored Sep 27, 2010
44
6067d16 @josevalim Call it compile_methods! and do the same on AM.
josevalim authored Sep 27, 2010
45 initializer "action_controller.compile_config_methods" do
918dc27 @thedarkone Compile ActionController::Base.config's methods to avoid method_missi…
thedarkone authored Sep 27, 2010
46 ActiveSupport.on_load(:action_controller) do
6067d16 @josevalim Call it compile_methods! and do the same on AM.
josevalim authored Sep 27, 2010
47 config.compile_methods! if config.respond_to?(:compile_methods!)
918dc27 @thedarkone Compile ActionController::Base.config's methods to avoid method_missi…
thedarkone authored Sep 27, 2010
48 end
49 end
38aeb15 Moving out some framework specific initializers into the framework li…
Carlhuda authored Dec 23, 2009
50 end
6c95e0f @drogus Add mounted_helpers to routes
drogus authored Jul 18, 2010
51 end
Something went wrong with that request. Please try again.