Files
fizzy/app/controllers/bubbles/assignments_controller.rb
T
2024-11-12 20:50:17 -06:00

20 lines
310 B
Ruby

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