Sha256: 329ead8a25cda2f0824b4041f0fe26d347b5c1ea0dd7f296ea8b3984b4245f4c

Contents?: true

Size: 483 Bytes

Versions: 1

Compression:

Stored size: 483 Bytes

Contents

require 'active_support'
require 'active_model/as_json_overrides'
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'

  ActiveSupport.on_load(:action_controller) do
    include ::ActionController::Serialization
  end
rescue LoadError
  # rails not installed, continuing
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_model_serializers_rails_2.3-0.9.0.pre1 lib/active_model_serializers.rb