aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-03-26 18:47:55 +0100
committerJosé Valim <jose.valim@gmail.com>2010-03-26 18:47:55 +0100
commit395d6648ce7549f71dd0a76dc061e87f608aaaab (patch)
tree4dbb6eb54ff784143bf6e2f671057f0b8162dba5 /activeresource
parentfc266d7ec2cf1d3f9daf585ea6b79b61467a175f (diff)
downloadrails-395d6648ce7549f71dd0a76dc061e87f608aaaab.tar.gz
rails-395d6648ce7549f71dd0a76dc061e87f608aaaab.tar.bz2
rails-395d6648ce7549f71dd0a76dc061e87f608aaaab.zip
Move application configuration to the application configuration object, remove railtie_name and engine_name and allow to set the configuration object.
Diffstat (limited to 'activeresource')
-rw-r--r--activeresource/lib/active_resource/railtie.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activeresource/lib/active_resource/railtie.rb b/activeresource/lib/active_resource/railtie.rb
index 27c88415f6..aa878c7212 100644
--- a/activeresource/lib/active_resource/railtie.rb
+++ b/activeresource/lib/active_resource/railtie.rb
@@ -3,10 +3,10 @@ require "rails"
module ActiveResource
class Railtie < Rails::Railtie
- railtie_name :active_resource
+ config.active_resource = ActiveSupport::OrderedOptions.new
require "active_resource/railties/log_subscriber"
- log_subscriber ActiveResource::Railties::LogSubscriber.new
+ log_subscriber :active_resource, ActiveResource::Railties::LogSubscriber.new
initializer "active_resource.set_configs" do |app|
app.config.active_resource.each do |k,v|