Sha256: 9ecacc92c257842a948bfd93966b0908630eac783eb663fdbc7cc9f72a28c49a
Contents?: true
Size: 499 Bytes
Versions: 4
Compression:
Stored size: 499 Bytes
Contents
module ActiveModel class Serializer # This class hold all information about serializer's association. # # @attr [Symbol] name # @attr [ActiveModel::Serializer] serializer # @attr [Hash{Symbol => Object}] options # # @example # Association.new(:comments, CommentSummarySerializer) # Association = Struct.new(:name, :serializer, :options, :links, :meta) do # @return [Symbol] def key options.fetch(:key, name) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems