module Pluckers::Features::HasManyThroughReflections

Public Instance Methods

active_record_has_many_through_reflection?(reflection) click to toggle source
# File lib/pluckers/features/active_record_3_2/has_many_through_reflections.rb, line 7
def active_record_has_many_through_reflection? reflection
  reflection.is_a?(ActiveRecord::Reflection::ThroughReflection) &&
  (reflection.macro == :has_many)
end