Sha256: 3fbbbad40f546a609190b541d1ca35363c95fe4ae891bf2feaf26a400070ab80
Contents?: true
Size: 453 Bytes
Versions: 22
Compression:
Stored size: 453 Bytes
Contents
require 'api_resource' require 'rails' module ApiResource class Railtie < ::Rails::Railtie config.api_resource = ActiveSupport::OrderedOptions.new initializer "api_resource.set_configs" do |app| app.config.api_resource.each do |k,v| ApiResource::Base.send "#{k}=", v end end initializer do ApiResource::Associations.activate_active_record if defined?(ActiveRecord) end end end
Version data entries
22 entries across 22 versions & 1 rubygems