Sha256: 9d63e4c8fbced0db006125c941de8543185889d1483363e017a814beed33fc51
Contents?: true
Size: 479 Bytes
Versions: 87
Compression:
Stored size: 479 Bytes
Contents
# frozen_string_literal: true module Alchemy class EssencePictureSerializer < ActiveModel::Serializer attributes( :id, :picture_id, :caption, :title, :alt_tag, :css_class, :link, ) has_one :picture def link return if object.link.blank? { url: object.link, css_class: object.link_class_name, title: object.link_title, target: object.link_target, } end end end
Version data entries
87 entries across 87 versions & 1 rubygems