Sha256: efed9e1da7d8eea621c7813699a2d57cee55ffe479866236874b4b6db34471cb

Contents?: true

Size: 336 Bytes

Versions: 201

Compression:

Stored size: 336 Bytes

Contents

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

Version data entries

201 entries across 175 versions & 12 rubygems

Version Path
activeresource-3.2.22.5 lib/active_resource/railtie.rb
activeresource-3.2.22.4 lib/active_resource/railtie.rb
activeresource-3.2.22.3 lib/active_resource/railtie.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activeresource-4.0.0/lib/active_resource/railtie.rb
activeresource-3.2.22.2 lib/active_resource/railtie.rb
activeresource-3.2.22.1 lib/active_resource/railtie.rb
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/activeresource-3.2.12/lib/active_resource/railtie.rb
activeresource-3.2.22 lib/active_resource/railtie.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/activeresource-3.2.12/lib/active_resource/railtie.rb
activeresource-3.2.21 lib/active_resource/railtie.rb
activeresource-3.2.20 lib/active_resource/railtie.rb
activeresource-3.2.19 lib/active_resource/railtie.rb
activeresource-3.2.18 lib/active_resource/railtie.rb
activeresource-3.2.17 lib/active_resource/railtie.rb
activeresource-3.2.16 lib/active_resource/railtie.rb
activeresource-3.2.15 lib/active_resource/railtie.rb
activeresource-3.2.15.rc3 lib/active_resource/railtie.rb
activeresource-3.2.15.rc2 lib/active_resource/railtie.rb
activeresource-3.2.15.rc1 lib/active_resource/railtie.rb
activeresource-3.2.14 lib/active_resource/railtie.rb