Sha256: 2154386de6294739238b75b6c687f292e1ff0c40556999da86ca8ab9bb5d6d4f
Contents?: true
Size: 704 Bytes
Versions: 7
Compression:
Stored size: 704 Bytes
Contents
# frozen_string_literal: true require "active_resource" require "rails" module ActiveResource class Railtie < Rails::Railtie config.active_resource = ActiveSupport::OrderedOptions.new initializer "active_resource.set_configs" do |app| ActiveSupport.on_load(:active_resource) do app.config.active_resource.each do |k, v| send "#{k}=", v end end end initializer "active_resource.add_active_job_serializer" do |app| if defined? app.config.active_job.custom_serializers require "active_resource/active_job_serializer" app.config.active_job.custom_serializers << ActiveResource::ActiveJobSerializer end end end end
Version data entries
7 entries across 7 versions & 2 rubygems