module Pluckers::Features::HasOneThroughReflections
Public Instance Methods
active_record_has_one_through_reflection?(reflection)
click to toggle source
# File lib/pluckers/features/active_record_3_2/has_one_through_reflections.rb, line 7 def active_record_has_one_through_reflection? reflection reflection.is_a?(ActiveRecord::Reflection::ThroughReflection) && (reflection.macro == :has_one) end