[ARVADOS] updated: b82628cb92fe81a60b30c0e13dcb862d5cbdf177
Git user
git at public.curoverse.com
Thu Nov 10 09:22:31 EST 2016
Summary of changes:
apps/workbench/app/controllers/application_controller.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
via b82628cb92fe81a60b30c0e13dcb862d5cbdf177 (commit)
from b0c19b9f3eb0c83d7609eb460d0dbad6345aa71e (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 b82628cb92fe81a60b30c0e13dcb862d5cbdf177
Author: radhika <radhika at curoverse.com>
Date: Thu Nov 10 09:21:41 2016 -0500
10310: ensure_arvados_api_exists also needs to check if the model_class is a class
diff --git a/apps/workbench/app/controllers/application_controller.rb b/apps/workbench/app/controllers/application_controller.rb
index c5dd093..c9ce8ce 100644
--- a/apps/workbench/app/controllers/application_controller.rb
+++ b/apps/workbench/app/controllers/application_controller.rb
@@ -215,7 +215,7 @@ class ApplicationController < ActionController::Base
end
def ensure_arvados_api_exists
- if model_class < ArvadosBase && !model_class.api_exists?(params['action'].to_sym)
+ if model_class.is_a?(Class) && model_class < ArvadosBase && !model_class.api_exists?(params['action'].to_sym)
@errors = ["#{params['action']} method is not supported for #{params['controller']}"]
return render_error(status: 404)
end
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list