Files
fizzy/app/controllers/assignments_controller.rb
T
2024-10-19 19:00:04 -07:00

14 lines
302 B
Ruby

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