class ActiveAny::Reflection::BelongsToReflection

Public Instance Methods

association_class() click to toggle source
# File lib/active_any/reflection/belongs_to_reflection.rb, line 6
def association_class
  Associations::BelongsToAssociation
end
belongs_to?() click to toggle source
# File lib/active_any/reflection/belongs_to_reflection.rb, line 14
def belongs_to?
  true
end
macro() click to toggle source
# File lib/active_any/reflection/belongs_to_reflection.rb, line 10
def macro
  :belongs_to
end

Private Instance Methods

join_fk() click to toggle source
# File lib/active_any/reflection/belongs_to_reflection.rb, line 24
def join_fk
  foreign_key
end
join_pk() click to toggle source
# File lib/active_any/reflection/belongs_to_reflection.rb, line 20
def join_pk
  record_class_primary_key
end