Sha256: 4154efb97c38cfaaa12b903c4f8a939bc0897d1154f5ac57929d7c0202f99b6c

Contents?: true

Size: 559 Bytes

Versions: 3

Compression:

Stored size: 559 Bytes

Contents

require 'active_support'
require 'active_support/lazy_load_hooks'
require 'active_record'
require 'active_model'
require "active_model/serializers/version"

ActiveSupport.on_load(:active_model) do
  require "active_model/serializers/xml"
end

ActiveSupport.on_load(:active_record) do
  require "active_record/serializers/xml_serializer"
end

module ActiveModel
  module Serializers
    extend ActiveSupport::Autoload

    eager_autoload do
      autoload :Xml
    end
  end

  def self.eager_load!
    super
    ActiveModel::Serializers.eager_load!
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/activemodel-serializers-xml-1.0.1/lib/active_model/serializers.rb
activemodel-serializers-xml-1.0.1 lib/active_model/serializers.rb
activemodel-serializers-xml-1.0.0 lib/active_model/serializers.rb