Files
docuseal/app/controllers/passwords_controller.rb
T

14 lines
250 B
Ruby
Raw Normal View History

2023-10-21 17:44:04 +03:00
# frozen_string_literal: true
class PasswordsController < Devise::PasswordsController
class Current < ActiveSupport::CurrentAttributes
attribute :user
end
def update
super do |resource|
Current.user = resource
end
end
end