mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
17 lines
No EOL
425 B
Ruby
17 lines
No EOL
425 B
Ruby
require "active_resource"
|
|
require "rails"
|
|
|
|
module ActiveResource
|
|
class Railtie < Rails::Railtie
|
|
railtie_name :active_resource
|
|
|
|
require "active_resource/railties/log_subscriber"
|
|
log_subscriber ActiveResource::Railties::LogSubscriber.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 |