method

corrections

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: ActiveRecord::InverseOfAssociationNotFoundError
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 49
      def corrections
        if reflection && associated_class
          @corrections ||= begin
            maybe_these = associated_class.reflections.keys
            DidYouMean::SpellChecker.new(dictionary: maybe_these).correct(reflection.options[:inverse_of].to_s)
          end
        else
          []
        end
      end
Register or log in to add new notes.