diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-22 20:44:29 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-22 20:44:38 +0100 |
commit | c8cc8a987213bf90fe6922517d52befb7c0587a8 (patch) | |
tree | 55a434ec6ee336f97dc7e9e27c18d9c27d755d62 /activeresource/lib | |
parent | 4ae79367277954bf6616151b03cbe0660808f9bd (diff) | |
download | rails-c8cc8a987213bf90fe6922517d52befb7c0587a8.tar.gz rails-c8cc8a987213bf90fe6922517d52befb7c0587a8.tar.bz2 rails-c8cc8a987213bf90fe6922517d52befb7c0587a8.zip |
Moved more configuration away from bootstrap.
Diffstat (limited to 'activeresource/lib')
-rw-r--r-- | activeresource/lib/active_resource/railtie.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activeresource/lib/active_resource/railtie.rb b/activeresource/lib/active_resource/railtie.rb index 1b9307d472..5c318f21e6 100644 --- a/activeresource/lib/active_resource/railtie.rb +++ b/activeresource/lib/active_resource/railtie.rb @@ -7,5 +7,11 @@ module ActiveResource require "active_resource/railties/subscriber" subscriber ActiveResource::Railties::Subscriber.new + + initializer "active_resource.set_configs" do |app| + app.config.active_resource.each do |k,v| + ActiveResource::Base.send "#{k}=", v + end + end end end
\ No newline at end of file |