Sha256: 965de5ef328823d945892838fbcd8271955edaaa4e569ab506eacc31110fddde
Contents?: true
Size: 448 Bytes
Versions: 1
Compression:
Stored size: 448 Bytes
Contents
# frozen_string_literal: true module Phlexi module Display module FieldOptions module Attachments protected def attachment_reflection @attachment_reflection ||= find_attachment_reflection end def find_attachment_reflection if object.class.respond_to?(:reflect_on_attachment) object.class.reflect_on_attachment(key) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
phlexi-display-0.0.2 | lib/phlexi/display/field_options/attachments.rb |