2995c1571f
To ensure we don't get spurious 500s when we can serve 400s on bad data
14 lines
301 B
Ruby
14 lines
301 B
Ruby
class AssignmentsController < ApplicationController
|
|
include BubbleScoped, BucketScoped
|
|
|
|
def create
|
|
@bubble.assign(find_assignee)
|
|
redirect_to bucket_bubble_url(@bucket, @bubble)
|
|
end
|
|
|
|
private
|
|
def find_assignee
|
|
@bucket.users.active.find(params.expect(:assignee_id))
|
|
end
|
|
end
|