Exception: ACH::Component::HasManyAssociation::DoubleAssignmentError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ach/component/has_many_association.rb

Overview

Exception thrown if an association object, assigned for particular owner object, is used to assign to another owner object

Instance Method Summary collapse

Constructor Details

#initialize(name, owner) ⇒ DoubleAssignmentError

Returns a new instance of DoubleAssignmentError.



36
37
38
# File 'lib/ach/component/has_many_association.rb', line 36

def initialize(name, owner)
  super "Association #{name} has alredy been assigned to #{owner}"
end