Sha256: 42bb4350a91ae7e30c5043720d020b674c57c56d127f4727aaf9638e7689bde3
Contents?: true
Size: 410 Bytes
Versions: 5
Compression:
Stored size: 410 Bytes
Contents
# frozen_string_literal: true module Alchemy class ElementSerializer < ActiveModel::Serializer self.root = false attributes :id, :name, :position, :page_id, :cell_id, :tag_list, :created_at, :updated_at, :ingredients, :content_ids has_many :nested_elements def ingredients object.contents.collect(&:serialize) end end end
Version data entries
5 entries across 5 versions & 1 rubygems