Sha256: dd88ffbdb6dabb6d3b9f0396452102d7252ad680a0715f7f93f5b377f2945fd3
Contents?: true
Size: 455 Bytes
Versions: 1
Compression:
Stored size: 455 Bytes
Contents
# frozen_string_literal: true module Phlexi module Display module FieldOptions module Associations protected def association_reflection @association_reflection ||= find_association_reflection end def find_association_reflection if object.class.respond_to?(:reflect_on_association) object.class.reflect_on_association(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/associations.rb |