Sha256: b5459e0a18d1d4b29bca964fc9025d7a51b60831089ae8255235124e265e48e4
Contents?: true
Size: 731 Bytes
Versions: 6
Compression:
Stored size: 731 Bytes
Contents
# frozen_string_literal: true require_relative "../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 app.config.try(:active_job).try(:custom_serializers) require_relative "../active_resource/active_job_serializer" app.config.active_job.custom_serializers << ActiveResource::ActiveJobSerializer end end end end
Version data entries
6 entries across 6 versions & 1 rubygems