Module: ActiveFedora::Serialization

Extended by:
ActiveSupport::Concern
Includes:
ActiveModel::Serializers::JSON
Included in:
Base
Defined in:
lib/active_fedora/serialization.rb

Overview

Active Fedora Serialization

Instance Method Summary collapse

Instance Method Details

#serializable_hash(options = nil) ⇒ Object


11
12
13
14
15
16
17
# File 'lib/active_fedora/serialization.rb', line 11

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

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

  super(options)
end