14 lines
250 B
Ruby
14 lines
250 B
Ruby
|
|
# 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
|