module Pluckers::Features::BelongsToPolymorphicReflections
Public Instance Methods
active_record_belongs_to_polymorphic_reflection?(reflection)
click to toggle source
# File lib/pluckers/features/active_record_3_2/belongs_to_polymorphic_reflections.rb, line 7 def active_record_belongs_to_polymorphic_reflection? reflection reflection.is_a?(ActiveRecord::Reflection::AssociationReflection) && reflection.macro == :belongs_to && reflection.options[:polymorphic] end