sorcery icon indicating copy to clipboard operation
sorcery copied to clipboard

Added support for `scope_for_authentication` method

Open iamdeuterium opened this issue 2 years ago • 0 comments

Example:

class User < ApplicationRecord
  authenticates_with_sorcery!

  def self.scope_for_authentication
    where(deleted: false)
  end
end

iamdeuterium avatar Jun 30 '22 09:06 iamdeuterium