Class: BucketMakerController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- BucketMakerController
- Includes:
- BucketMakerConcern
- Defined in:
- app/controllers/bucket_maker_controller.rb
Instance Method Summary collapse
Instance Method Details
#randomize ⇒ Object
15 16 17 |
# File 'app/controllers/bucket_maker_controller.rb', line 15 def randomize render text: @current_user.bucketize_for_series_and_bucket!(@series_name, @bucket_name) end |
#show ⇒ Object
7 8 9 |
# File 'app/controllers/bucket_maker_controller.rb', line 7 def show render text: @current_user.in_bucket?(@series_name, @bucket_name, @group_name) end |
#switch ⇒ Object
11 12 13 |
# File 'app/controllers/bucket_maker_controller.rb', line 11 def switch render text: @current_user.force_to_bucket!(@series_name, @bucket_name, @group_name) end |