module Pluckers::Features::BelongsToReflections

Public Instance Methods

active_record_belongs_to_reflection?(reflection) click to toggle source
# File lib/pluckers/features/active_record_3_2/belongs_to_reflections.rb, line 7
def active_record_belongs_to_reflection? reflection
  reflection.is_a?(ActiveRecord::Reflection::AssociationReflection) &&
  reflection.macro == :belongs_to &&
  !reflection.options[:polymorphic]
end