Sha256: 90b554190a7e11e529df2a95050f33818fabd7710f6422405e472225358ae64f
Contents?: true
Size: 665 Bytes
Versions: 2
Compression:
Stored size: 665 Bytes
Contents
# frozen_string_literal: true require 'nobrainer' module OmniAuth module Identity module Models # http://nobrainer.io/ an ORM for RethinkDB module NoBrainer 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.4 | lib/omniauth/identity/models/no_brainer.rb |
omniauth-identity-3.0.3 | lib/omniauth/identity/models/no_brainer.rb |