Sha256: be4a392c54d5e6d8e2799f57b446e054390e19cb42b59125c3691f2fdb3e649f
Contents?: true
Size: 676 Bytes
Versions: 3
Compression:
Stored size: 676 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
3 entries across 3 versions & 2 rubygems