Class: BucketMakerController

Inherits:
ApplicationController
  • Object
show all
Includes:
BucketMakerConcern
Defined in:
app/controllers/bucket_maker_controller.rb

Instance Method Summary collapse

Instance Method Details

#randomizeObject



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

#showObject



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

#switchObject



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