Sha256: dd882d1f0aebe18902142e6fa17dbfcfa562f35d37cf4376abb7b0e56383d8c2

Contents?: true

Size: 261 Bytes

Versions: 9

Compression:

Stored size: 261 Bytes

Contents

module Alchemy
  class ElementSerializer < ActiveModel::Serializer
    self.root = false

    attributes :id,
      :name,
      :position,
      :page_id,
      :cell_id,
      :tag_list,
      :created_at,
      :updated_at

    has_many :contents

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
alchemy_cms-3.0.4 app/serializers/alchemy/element_serializer.rb
alchemy_cms-3.0.3 app/serializers/alchemy/element_serializer.rb
alchemy_cms-3.0.2 app/serializers/alchemy/element_serializer.rb
alchemy_cms-3.0.1 app/serializers/alchemy/element_serializer.rb
alchemy_cms-3.0.0 app/serializers/alchemy/element_serializer.rb
alchemy_cms-3.0.0.rc8 app/serializers/alchemy/element_serializer.rb
alchemy_cms-3.0.0.rc7 app/serializers/alchemy/element_serializer.rb
alchemy_cms-3.0.0.rc6 app/serializers/alchemy/element_serializer.rb
alchemy_cms-3.0.0.rc5 app/serializers/alchemy/element_serializer.rb