Sha256: da4a132063ad81e9ae4145dc33f7545321bcdff64ad235a40e678bd816e458aa
Contents?: true
Size: 665 Bytes
Versions: 4
Compression:
Stored size: 665 Bytes
Contents
# frozen_string_literal: true # ActiveSupport Concern for confirming users module DeviseJwtAuth::Concerns::ConfirmableSupport extend ActiveSupport::Concern included do # Override standard devise `postpone_email_change?` method # for not to use `will_save_change_to_email?` & `email_changed?` methods. def postpone_email_change? postpone = self.class.reconfirmable && email_was != email && !@bypass_confirmation_postpone && email.present? && (!@skip_reconfirmation_in_callback || !email_was.nil?) @bypass_confirmation_postpone = false postpone end end end
Version data entries
4 entries across 4 versions & 1 rubygems