Sha256: 93954d4a77d350e08181dd0e3342a47d13e43411e745d2382a8d3fe882957a7e

Contents?: true

Size: 676 Bytes

Versions: 2

Compression:

Stored size: 676 Bytes

Contents

require 'active_model'
require 'active_model/serializer'
require 'active_model/serializer_support'
require 'active_model/serializer/version'
require 'active_model/serializer/railtie' if defined?(Rails)

begin
  require 'action_controller'
  require 'action_controller/serialization'
  require 'action_controller/serialization_test_case'

  ActiveSupport.on_load(:after_initialize) do
    if ::ActionController::Serialization.enabled
      ActionController::Base.send(:include, ::ActionController::Serialization)
      ActionController::TestCase.send(:include, ::ActionController::SerializationAssertions)
    end
  end
rescue LoadError
  # rails not installed, continuing
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_model_serializers-0.9.2 lib/active_model_serializers.rb
active_model_serializers-0.9.0 lib/active_model_serializers.rb