Class: Booth::PasswordResets::Step

Inherits:
Object
  • Object
show all
Includes:
MethodObject
Defined in:
lib/booth/password_resets/step.rb

Instance Method Summary collapse

Methods included from MethodObject

included

Instance Method Details

#callObject



8
9
10
11
12
13
14
15
# File 'lib/booth/password_resets/step.rb', line 8

def call
  return :completed if password_reset.completed?
  return :revoked if password_reset.revoked?
  return :timed_out unless password_reset.recently_created?
  return :confirm_password if password_reset.password_chosen_at.present?

  :choose_password
end