class Ansr::DummyAssociations::DummyReflection

Public Class Methods

new(macro, name, scope, options, active_record) click to toggle source
Calls superclass method
# File lib/ansr/dummy_associations.rb, line 63
def initialize(macro, name, scope, options, active_record)
  super(macro, name, scope, options, active_record)
  @symbol = name
end

Public Instance Methods

association_class() click to toggle source
# File lib/ansr/dummy_associations.rb, line 81
def association_class
  DummyAssociation
end
check_validity!() click to toggle source
# File lib/ansr/dummy_associations.rb, line 85
def check_validity!
  true
end
collection?() click to toggle source
# File lib/ansr/dummy_associations.rb, line 75
def collection?
  [:has_one, :has_many, :has_and_belongs_to_many].include? macro
end
foreign_key() click to toggle source
# File lib/ansr/dummy_associations.rb, line 72
def foreign_key
  @symbol # ??
end
polymorphic?() click to toggle source
# File lib/ansr/dummy_associations.rb, line 68
def polymorphic?
  false
end
validate?() click to toggle source
# File lib/ansr/dummy_associations.rb, line 78
def validate?
  false
end