blob: 7e35fdc0eb7bd8dee5f08fe3f4ac4eefeb2ae3f0 (
plain) (
tree)
|
|
require "active_resource"
require "rails"
module ActiveResource
class Railtie < Rails::Railtie
railtie_name :active_resource
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
|