Sha256: 45500cf948ac185ed8212dce9d3f735cc0d34717327ad36555e054b7d0b528d9
Contents?: true
Size: 524 Bytes
Versions: 34
Compression:
Stored size: 524 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 "api_resource.activate_associations" do ActiveSupport.on_load(:active_record) do ApiResource::Associations.activate_active_record end end end end
Version data entries
34 entries across 34 versions & 1 rubygems