Sha256: c995353074712c1d951e86e70a603f8a5230e0c5e9a859cf844e7dc5e58793f7
Contents?: true
Size: 371 Bytes
Versions: 9
Compression:
Stored size: 371 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 has_many :nested_elements def ingredients object.contents.collect(&:serialize) end end end
Version data entries
9 entries across 9 versions & 1 rubygems