lib/omniauth/identity/models/sequel.rb in omniauth-identity-3.0.6 vs lib/omniauth/identity/models/sequel.rb in omniauth-identity-3.0.7

- old
+ new

@@ -4,22 +4,22 @@ module OmniAuth module Identity module Models # http://sequel.jeremyevans.net/ an SQL ORM - # NOTE: Sequel is *not* based on ActiveModel, but supports the API we need, except for `persisted`: + # NOTE: Sequel is *not* based on ActiveModel, but supports the API we need, except for `persisted?`: # * create - # * save, but save is deprecated in favor of `save_changes` + # * save module Sequel 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::Model include ::OmniAuth::Identity::SecurePassword has_secure_password alias_method :persisted?, :valid? @@ -36,10 +36,10 @@ def persisted? exists? end def save - save_changes + super end end end end end