Class: Booth::Userland::PersonalContests::Update
- Inherits:
-
Object
- Object
- Booth::Userland::PersonalContests::Update
- Includes:
- Concerns::Action
- Defined in:
- lib/booth/userland/personal_contests/update.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
7 8 9 10 11 12 |
# File 'lib/booth/userland/personal_contests/update.rb', line 7 def call request.must_be_patch! do_check_logged_in .on_success { do_respond } end |
#do_check_logged_in ⇒ Object
14 15 16 17 18 |
# File 'lib/booth/userland/personal_contests/update.rb', line 14 def do_check_logged_in return Tron.success :logged_in if credential Tron.failure :not_logged_in end |