Class: OmniAuth::Identity::Models::ActiveRecord
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- OmniAuth::Identity::Models::ActiveRecord
- Includes:
- OmniAuth::Identity::Model, SecurePassword
- Defined in:
- lib/omniauth/identity/models/active_record.rb
Overview
ActiveRecord is an ORM for MySQL, PostgreSQL, and SQLite3:
https://guides.rubyonrails.org/active_record_basics.html
NOTE: ActiveRecord is based on ActiveModel.
Constant Summary
Constants included from SecurePassword
SecurePassword::MAX_PASSWORD_LENGTH_ALLOWED
Constants included from OmniAuth::Identity::Model
OmniAuth::Identity::Model::SCHEMA_ATTRIBUTES
Class Method Summary collapse
Methods included from SecurePassword
Methods included from OmniAuth::Identity::Model
#auth_key, #auth_key=, #authenticate, included, #info, #uid
Class Method Details
.auth_key=(key) ⇒ Object
19 20 21 22 |
# File 'lib/omniauth/identity/models/active_record.rb', line 19 def self.auth_key=(key) super validates_uniqueness_of(key, case_sensitive: false) end |
.locate(search_hash) ⇒ Object
24 25 26 27 |
# File 'lib/omniauth/identity/models/active_record.rb', line 24 def self.locate(search_hash) search_hash = search_hash.reverse_merge!("provider" => "identity") if column_names.include?("provider") where(search_hash).first end |