module OmniAuth::Identity::Models::Sequel
Sequel
is an ORM adapter for the following databases:
ADO, Amalgalite, IBM_DB, JDBC, MySQL, Mysql2, ODBC, Oracle, PostgreSQL, SQLAnywhere, SQLite3, and TinyTDS
The homepage is: sequel.jeremyevans.net/ NOTE: Sequel
is not based on ActiveModel, but supports the API we need, except for `persisted?`:
-
create
-
save
Public Class Methods
auth_key=(key)
click to toggle source
Calls superclass method
OmniAuth::Identity::Model#auth_key=
# File lib/omniauth/identity/models/sequel.rb, line 27 def self.auth_key=(key) super validates_uniqueness_of :key, case_sensitive: false end
included(base)
click to toggle source
# File lib/omniauth/identity/models/sequel.rb, line 15 def self.included(base) base.class_eval do # NOTE: Using the deprecated :validations_class_methods because it defines # validates_confirmation_of, while current :validation_helpers does not. # plugin :validation_helpers plugin :validation_class_methods 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 def persisted? exists? end def save super end end end
locate(search_hash)
click to toggle source
# File lib/omniauth/identity/models/sequel.rb, line 32 def self.locate(search_hash) where(search_hash).first end
Public Instance Methods
persisted?()
click to toggle source
# File lib/omniauth/identity/models/sequel.rb, line 36 def persisted? exists? end
save()
click to toggle source
Calls superclass method
# File lib/omniauth/identity/models/sequel.rb, line 40 def save super end