20 lines
310 B
Ruby
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
|