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

20 lines
317 B
Ruby

class Bubbles::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