Exception: ActiveRecord::ReadOnlyAssociation
- Inherits:
-
ActiveRecordError
- Object
- StandardError
- ActiveRecordError
- ActiveRecord::ReadOnlyAssociation
- Defined in:
- activerecord/lib/active_record/associations.rb
Overview
:nodoc:
Instance Method Summary (collapse)
-
- (ReadOnlyAssociation) initialize(reflection)
constructor
A new instance of ReadOnlyAssociation.
Constructor Details
- (ReadOnlyAssociation) initialize(reflection)
A new instance of ReadOnlyAssociation
93 94 95 |
# File 'activerecord/lib/active_record/associations.rb', line 93 def initialize(reflection) super("Can not add to a has_many :through association. Try adding to #{reflection.through_reflection.name.inspect}.") end |