Update mapping.rb (#5673)

Fix grammar on comment for .find_scope! [ci skip]
This commit is contained in:
Artin Boghosian
2024-02-13 04:22:46 -08:00
committed by GitHub
parent e2242a95f3
commit bb18f4d380

View File

@@ -30,7 +30,7 @@ module Devise
alias :name :singular
# Receives an object and find a scope for it. If a scope cannot be found,
# Receives an object and finds a scope for it. If a scope cannot be found,
# raises an error. If a symbol is given, it's considered to be the scope.
def self.find_scope!(obj)
obj = obj.devise_scope if obj.respond_to?(:devise_scope)