Files
fizzy/app/controllers/assignments_controller.rb
T
2024-11-14 12:30:05 -06:00

20 lines
308 B
Ruby

class AssignmentsController < ApplicationController
include BubbleScoped, BucketScoped
def new
end
def show
end
def create
@bubble.assign(find_assignee)
redirect_to @bubble
end
private
def find_assignee
@bucket.users.active.find(params.expect(:assignee_id))
end
end