Sha256: d6dfacaf9973255271304a7e560327dbfa95976ab193f708bd4c49950a39fb1d
Contents?: true
Size: 481 Bytes
Versions: 64
Compression:
Stored size: 481 Bytes
Contents
# frozen_string_literal: true module Alchemy class ElementSerializer < ActiveModel::Serializer attributes :id, :name, :position, :page_id, :tag_list, :created_at, :updated_at, :ingredients, :content_ids, :dom_id, :display_name has_many :nested_elements def ingredients object.contents.collect(&:serialize) end def display_name object.display_name_with_preview_text end end end
Version data entries
64 entries across 64 versions & 1 rubygems