[ARVADOS] updated: 0e7e57bbd8030c8144a18e43e68945ab11ad094c
git at public.curoverse.com
git at public.curoverse.com
Fri Jun 6 09:37:54 EDT 2014
Summary of changes:
apps/workbench/app/controllers/application_controller.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
via 0e7e57bbd8030c8144a18e43e68945ab11ad094c (commit)
from 0b4f867ef14af38c07b910643fbe8cc6a93e6bb6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 0e7e57bbd8030c8144a18e43e68945ab11ad094c
Author: Brett Smith <brett at curoverse.com>
Date: Fri Jun 6 09:38:25 2014 -0400
2882: Workbench generic create controller adds JSON href attribute.
This is a bugfix commit. This detail got lost when create stopped
calling show to render the object. Refs #2882.
diff --git a/apps/workbench/app/controllers/application_controller.rb b/apps/workbench/app/controllers/application_controller.rb
index b109e5c..7d49f55 100644
--- a/apps/workbench/app/controllers/application_controller.rb
+++ b/apps/workbench/app/controllers/application_controller.rb
@@ -148,7 +148,7 @@ class ApplicationController < ActionController::Base
@object ||= model_class.new @new_resource_attrs, params["options"]
if @object.save
respond_to do |f|
- f.json { render json: @object }
+ f.json { render json: @object.attributes.merge(href: url_for(@object)) }
f.html {
redirect_to @object
}
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list