lib/omniauth/identity/models/sequel.rb in omniauth-identity-3.0.8 vs lib/omniauth/identity/models/sequel.rb in omniauth-identity-3.0.9
- old
+ new
@@ -1,13 +1,15 @@
# frozen_string_literal: true
-require 'nobrainer'
+require 'sequel'
module OmniAuth
module Identity
module Models
- # http://sequel.jeremyevans.net/ an SQL ORM
+ # 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: http://sequel.jeremyevans.net/
# NOTE: Sequel is *not* based on ActiveModel, but supports the API we need, except for `persisted?`:
# * create
# * save
module Sequel
def self.included(base)
@@ -19,11 +21,9 @@
include ::OmniAuth::Identity::Model
include ::OmniAuth::Identity::SecurePassword
has_secure_password
-
- alias_method :persisted?, :valid?
def self.auth_key=(key)
super
validates_uniqueness_of :key, case_sensitive: false
end