Sha256: 0b0c8a763878f0e33b7ffd733887515f26ad410b4f9544d753197019216a83b5
Contents?: true
Size: 501 Bytes
Versions: 25
Compression:
Stored size: 501 Bytes
Contents
# frozen_string_literal: true module Alchemy class EssencePictureSerializer < ActiveModel::Serializer attributes :id, :picture_id, :caption, :title, :alt_tag, :css_class, :link, :created_at, :updated_at 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
25 entries across 25 versions & 1 rubygems