Merge branch '2328-keep-permission-flags' (closes #2328)
[arvados.git] / apps / workbench / app / helpers / application_helper.rb
index 4e883f55753cad39967237fd40de92648033aa77..dbb05d6ad4ae1d0b9a027194c93d596f9b8007c8 100644 (file)
@@ -152,7 +152,6 @@ module ApplicationHelper
     else
       ajax_options['data-url'] = url_for(action: "create", controller: object.class.to_s.pluralize.underscore)
       ajax_options['data-pk'][:defaults] = object.attributes
-      ajax_options['data-pk'][:_method] = 'post'
     end
     ajax_options['data-pk'] = ajax_options['data-pk'].to_json
 
@@ -162,6 +161,7 @@ module ApplicationHelper
       "data-type" => input_type,
       "data-title" => "Update #{attr.gsub '_', ' '}",
       "data-name" => attr,
+      "data-object-uuid" => object.uuid,
       :class => "editable"
     }.merge(htmloptions).merge(ajax_options)
   end