method
new
v4.1.8 -
Show latest stable
- Class:
ActiveRecord::ReadOnlyAssociation
new(reflection)public
No documentation available.
# File activerecord/lib/active_record/associations.rb, line 89
def initialize(reflection)
super("Cannot add to a has_many :through association. Try adding to #{reflection.through_reflection.name.inspect}.")
end