X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/da51b9328abab2df757ed13eadc7c3557315094b..5845d196105cc4676847695833b7ef3658c8a180:/apps/workbench/app/controllers/keep_disks_controller.rb 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