BathHacked/energy-sparks

View on GitHub
app/controllers/confirmations_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class ConfirmationsController < Devise::ConfirmationsController
  private

  def after_confirmation_path_for(_resource_name, resource)
    token = resource.send(:set_reset_password_token)
    edit_password_url(resource, reset_password_token: token, confirmed: true)
  end
end