[ARVADOS] updated: 1c6d77f980ea3d560fec8c4f0dafe3fe0d2b23fc

git at public.curoverse.com git at public.curoverse.com
Thu Mar 5 15:38:45 EST 2015


Summary of changes:
 apps/workbench/app/controllers/application_controller.rb | 3 +++
 1 file changed, 3 insertions(+)

       via  1c6d77f980ea3d560fec8c4f0dafe3fe0d2b23fc (commit)
      from  8680153856ed2319735b6a1f832601354bbdfa61 (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 1c6d77f980ea3d560fec8c4f0dafe3fe0d2b23fc
Author: Tom Clegg <tom at curoverse.com>
Date:   Thu Mar 5 15:09:11 2015 -0500

    5261: Fix {redirect_to @object} usage.

diff --git a/apps/workbench/app/controllers/application_controller.rb b/apps/workbench/app/controllers/application_controller.rb
index 0a13fa6..523ef7f 100644
--- a/apps/workbench/app/controllers/application_controller.rb
+++ b/apps/workbench/app/controllers/application_controller.rb
@@ -269,6 +269,9 @@ class ApplicationController < ActionController::Base
 
   def redirect_to uri, *args
     if request.xhr?
+      if not uri.is_a? String
+        uri = polymorphic_url(uri)
+      end
       render json: {href: uri}
     else
       super

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list