diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-26 18:37:48 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-26 18:40:23 -0300 |
commit | 297bff7f8f01fbda2a6bacaed4afb3d060292b9f (patch) | |
tree | 06eeda209052a224a91f1dffc05b9e5d71999dc1 /activesupport/lib/active_support/railtie.rb | |
parent | bc90ea63e9937d2eee3da7dce022bf4bed10e49a (diff) | |
download | rails-297bff7f8f01fbda2a6bacaed4afb3d060292b9f.tar.gz rails-297bff7f8f01fbda2a6bacaed4afb3d060292b9f.tar.bz2 rails-297bff7f8f01fbda2a6bacaed4afb3d060292b9f.zip |
Make sure Active Support configurations are applied correctly
Before this patch configuration set using config.active_support
would not be set.
Closes #15364
Diffstat (limited to 'activesupport/lib/active_support/railtie.rb')
-rw-r--r-- | activesupport/lib/active_support/railtie.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/railtie.rb b/activesupport/lib/active_support/railtie.rb index 1638512af0..65851a0937 100644 --- a/activesupport/lib/active_support/railtie.rb +++ b/activesupport/lib/active_support/railtie.rb @@ -55,5 +55,12 @@ module ActiveSupport Time.zone_default = zone_default end + + initializer "active_support.set_configs" do |app| + app.config.active_support.each do |k, v| + k = "#{k}=" + ActiveSupport.send(k, v) if ActiveSupport.respond_to? k + end + end end end |