diff options
author | Rick Olson <technoweenie@gmail.com> | 2008-04-01 20:35:56 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2008-04-01 20:35:56 +0000 |
commit | e0402fe0329fb4f631f49ddee466caace8ece192 (patch) | |
tree | 62d03a2dfe6a908899f5be70a61330d641db744d /railties/lib | |
parent | 1eb57a6870cbaa0f965f1c1cf7681a67785e71b0 (diff) | |
download | rails-e0402fe0329fb4f631f49ddee466caace8ece192.tar.gz rails-e0402fe0329fb4f631f49ddee466caace8ece192.tar.bz2 rails-e0402fe0329fb4f631f49ddee466caace8ece192.zip |
Add config.active_support for future configuration options. Also, add more new Rails 3 config settings to new_rails_defaults.rb [rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9204 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/initializer.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb index d929fe81e2..05a71e6065 100644 --- a/railties/lib/initializer.rb +++ b/railties/lib/initializer.rb @@ -416,6 +416,9 @@ module Rails base_class.send("#{setting}=", value) end end + configuration.active_support.each do |setting, value| + ActiveSupport.send("#{setting}=", value) + end end # Fires the user-supplied after_initialize block (Configuration#after_initialize) @@ -461,6 +464,9 @@ module Rails # A stub for setting options on ActiveRecord::Base attr_accessor :active_resource + # A stub for setting optinos on ActiveSupport + attr_accessor :active_support + # Whether or not classes should be cached (set to false if you want # application classes to be reloaded on each request) attr_accessor :cache_classes @@ -609,6 +615,7 @@ module Rails for framework in default_frameworks self.send("#{framework}=", Rails::OrderedOptions.new) end + self.active_support = Rails::OrderedOptions.new end # Set the root_path to RAILS_ROOT and canonicalize it. |