Sha256: d4878037fc2abdb88f141522114c4a31b2c8b5b6a7ecdc4763a05b1512dac083
Contents?: true
Size: 429 Bytes
Versions: 14
Compression:
Stored size: 429 Bytes
Contents
# frozen_string_literal: true module Alchemy class EssenceTextSerializer < ActiveModel::Serializer self.root = false attributes :id, :body, :link, :created_at, :updated_at def link return if object.link.blank? { url: object.link, title: object.link_title, css_class: object.link_class_name, target: object.link_target } end end end
Version data entries
14 entries across 14 versions & 1 rubygems