aboutsummaryrefslogblamecommitdiffstats
path: root/activeresource/lib/active_resource/railtie.rb
blob: 60f6f88311c63023c7eb086606caca3a890a2d29 (plain) (tree)
1
2
3
4
5
6
7
                         



                                
                                                              
 




                                                      

     
require "active_resource"
require "rails"

module ActiveResource
  class Railtie < Rails::Railtie
    config.active_resource = ActiveSupport::OrderedOptions.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