Exception: BigRecord::ReadOnlyAssociation

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

Overview

:nodoc:

Instance Method Summary

Constructor Details

- (ReadOnlyAssociation) initialize(reflection)

A new instance of ReadOnlyAssociation



59
60
61
# File 'lib/big_record/ar_associations.rb', line 59

def initialize(reflection)
  super("Can not add to a has_many :through association.  Try adding to #{reflection.through_reflection.name.inspect}.")
end