Sha256: 4deee1335a0604d9ade048b8bb11b99aecf8f15e1cd23ee2a2de0b4b00f19cf5
Contents?: true
Size: 611 Bytes
Versions: 3
Compression:
Stored size: 611 Bytes
Contents
# frozen_string_literal: true require 'mongoid' module OmniAuth module Identity module Models module Mongoid def self.included(base) base.class_eval do include ::OmniAuth::Identity::Model include ::OmniAuth::Identity::SecurePassword has_secure_password def self.auth_key=(key) super validates_uniqueness_of key, case_sensitive: false end def self.locate(search_hash) where(search_hash).first end end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems