X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/da51b9328abab2df757ed13eadc7c3557315094b..3de8b7c50ba3d254acb888579f16de44ce693e36:/apps/workbench/app/controllers/keep_disks_controller.rb?ds=sidebyside diff --git a/apps/workbench/app/controllers/keep_disks_controller.rb b/apps/workbench/app/controllers/keep_disks_controller.rb index 482a2d33be..cc89228832 100644 --- a/apps/workbench/app/controllers/keep_disks_controller.rb +++ b/apps/workbench/app/controllers/keep_disks_controller.rb @@ -1,2 +1,7 @@ class KeepDisksController < ApplicationController + def create + defaults = { is_readable: true, is_writable: true } + @object = KeepDisk.new defaults.merge(params[:keep_disk] || {}) + super + end end