Exception: BigRecord::HasManyThroughCantAssociateNewRecords

Inherits:
BigRecordError show all
Defined in:
lib/big_record/ar_associations.rb

Overview

:nodoc:

Instance Method Summary

Constructor Details

- (HasManyThroughCantAssociateNewRecords) initialize(owner, reflection)

A new instance of HasManyThroughCantAssociateNewRecords



47
48
49
# File 'lib/big_record/ar_associations.rb', line 47

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