Exception: CouchFoo::HasManyThroughCantAssociateNewRecords
- Inherits:
-
CouchFooError
- Object
- StandardError
- CouchFooError
- CouchFoo::HasManyThroughCantAssociateNewRecords
- Defined in:
- lib/couch_foo/associations.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(owner, reflection) ⇒ HasManyThroughCantAssociateNewRecords
constructor
A new instance of HasManyThroughCantAssociateNewRecords.
Constructor Details
#initialize(owner, reflection) ⇒ HasManyThroughCantAssociateNewRecords
Returns a new instance of HasManyThroughCantAssociateNewRecords.
53 54 55 |
# File 'lib/couch_foo/associations.rb', line 53 def initialize(owner, reflection) super("Cannot associate new records through '#{owner.class.name}##{reflection.name}' on '#{reflection.source_reflection.class_name rescue nil}##{reflection.source_reflection.name rescue nil}'. Both records must have an id in order to create the has_many :through record associating them.") end |