diff options
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. |