Sha256: 6356d864124879071b4b367570d0a0453acdb72ac8c4722e78c15f5eb3308f2c

Contents?: true

Size: 421 Bytes

Versions: 66

Compression:

Stored size: 421 Bytes

Contents

module ActiveFedora #:nodoc:
  # = Active Fedora Serialization
  module Serialization
    extend ActiveSupport::Concern
    include ActiveModel::Serializers::JSON

    included do
      self.include_root_in_json = false
    end

    def serializable_hash(options = nil)
      options = options.try(:clone) || {}

      options[:except] = Array(options[:except]).map { |n| n.to_s }

      super(options)
    end
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
active-fedora-9.2.1 lib/active_fedora/serialization.rb
active-fedora-9.2.0 lib/active_fedora/serialization.rb
active-fedora-9.2.0.rc2 lib/active_fedora/serialization.rb
active-fedora-9.2.0.rc1 lib/active_fedora/serialization.rb
active-fedora-9.1.2 lib/active_fedora/serialization.rb
active-fedora-8.1.0 lib/active_fedora/serialization.rb
active-fedora-9.1.1 lib/active_fedora/serialization.rb
active-fedora-9.1.0 lib/active_fedora/serialization.rb
active-fedora-9.1.0.rc1 lib/active_fedora/serialization.rb
active-fedora-8.0.1 lib/active_fedora/serialization.rb
active-fedora-9.0.6 lib/active_fedora/serialization.rb
active-fedora-9.0.5 lib/active_fedora/serialization.rb
active-fedora-9.0.4 lib/active_fedora/serialization.rb
active-fedora-9.0.3 lib/active_fedora/serialization.rb
active-fedora-9.0.2 lib/active_fedora/serialization.rb
active-fedora-9.0.1 lib/active_fedora/serialization.rb
active-fedora-9.0.0 lib/active_fedora/serialization.rb
active-fedora-9.0.0.rc3 lib/active_fedora/serialization.rb
active-fedora-8.0.0 lib/active_fedora/serialization.rb
active-fedora-8.0.0.rc3 lib/active_fedora/serialization.rb