method

corrections

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: AssociationNotFoundError
corrections() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/associations.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
Register or log in to add new notes.