method
corrections
v8.0.0 -
Show latest stable
- Class:
ActiveRecord::AssociationNotFoundError
corrections()public
No documentation available.
# File activerecord/lib/active_record/associations/errors.rb, line 20
def corrections
if record && association_name
@corrections ||= begin
maybe_these = record.class.reflections.keys
DidYouMean::SpellChecker.new(dictionary: maybe_these).correct(association_name)
end
else
[]
end
end