Class: Booth::Userland::Registrations::New

Inherits:
Object
  • Object
show all
Includes:
Concerns::Action
Defined in:
lib/booth/userland/registrations/new.rb

Instance Method Summary collapse

Instance Method Details

#callObject



7
8
9
10
11
12
13
14
15
16
# File 'lib/booth/userland/registrations/new.rb', line 7

def call
  request.must_be_get!
  request.must_be_html!

  if already_logged_in?
    call_already_logged_in
  else
    Tron.failure :choose_username, step: :choose_username, username: storage.username
  end
end