Module: InverseOf::Associations::AssociationProxy

Defined in:
lib/inverse_of.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



88
89
90
# File 'lib/inverse_of.rb', line 88

def self.included(base)
  base.alias_method_chain :initialize, :inverse_of
end

Instance Method Details

#initialize_with_inverse_of(owner, reflection) ⇒ Object



92
93
94
95
# File 'lib/inverse_of.rb', line 92

def initialize_with_inverse_of(owner, reflection)
  reflection.check_validity!
  initialize_without_inverse_of(owner, reflection)
end