Sha256: 9e29801e5f9cb14ff32e92aad47bdea6bd6f1080c611d1d0d266eba12beff0a8
Contents?: true
Size: 670 Bytes
Versions: 2
Compression:
Stored size: 670 Bytes
Contents
require 'couch_potato' module OmniAuth module Identity module Models # can not be named CouchPotato since there is a class with that name module CouchPotatoModule 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
omniauth-identity-3.0.1 | lib/omniauth/identity/models/couch_potato.rb |
omniauth-identity-3.0.0 | lib/omniauth/identity/models/couch_potato.rb |