Class: Booth::Userland::Registrations::Create

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

Overview

User posts a form to self-register a new username.

Instance Method Summary collapse

Instance Method Details

#callObject



10
11
12
13
14
15
16
17
# File 'lib/booth/userland/registrations/create.rb', line 10

def call
  request.must_be_post!

  do_check_domain
    .on_success { do_check_logged_in }
    .on_success { do_check_taken }
    .on_success { do_create }
end