f594bc09a0
This is coming straight from the form, unlikely to blow up
16 lines
356 B
Ruby
16 lines
356 B
Ruby
class Collections::WorkflowsController < ApplicationController
|
|
include CollectionScoped
|
|
|
|
before_action :set_workflow
|
|
|
|
def update
|
|
@collection.update! workflow: @workflow
|
|
redirect_to cards_path(collection_ids: [ @collection ])
|
|
end
|
|
|
|
private
|
|
def set_workflow
|
|
@workflow = Workflow.find(params[:collection][:workflow_id])
|
|
end
|
|
end
|