method
new
v5.2.3 -
Show latest stable
- Class:
ActiveRecord::InverseOfAssociationNotFoundError
new(reflection = nil, associated_class = nil)public
No documentation available.
# File activerecord/lib/active_record/associations.rb, line 20
def initialize(reflection = nil, associated_class = nil)
if reflection
super("Could not find the inverse association for #{reflection.name} (#{reflection.options[:inverse_of].inspect} in #{associated_class.nil? ? reflection.class_name : associated_class.name})")
else
super("Could not find the inverse association.")
end
end