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