Sha256: 1580317bf07922a020ec904991895daf64c491c6b533fbe306d7014ff8301366

Contents?: true

Size: 485 Bytes

Versions: 2

Compression:

Stored size: 485 Bytes

Contents

require 'active_model'
require 'active_model/serializer/version'
require 'active_model/serializer'
require 'active_model/serializer/fieldset'

begin
  require 'action_controller'
  require 'action_controller/serialization'

  ActiveSupport.on_load(:action_controller) do
    include ::ActionController::Serialization
    ActionDispatch::Reloader.to_prepare do
      ActiveModel::Serializer.serializers_cache.clear
    end
  end
rescue LoadError
  # rails not installed, continuing
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
cm-active_model_serializers-0.10.0.rc1.1 lib/active_model_serializers.rb
active_model_serializers-0.10.0.rc1 lib/active_model_serializers.rb