projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06c00e7
)
Fix so that a present but empty select parameter in queries no longer yields
author
Peter Amstutz <peter.amstutz@curoverse.com>
Tue, 6 May 2014 01:24:45 +0000
(21:24 -0400)
committer
Peter Amstutz <peter.amstutz@curoverse.com>
Tue, 6 May 2014 01:24:45 +0000
(21:24 -0400)
an error.
services/api/lib/load_param.rb
patch
|
blob
|
history
diff --git
a/services/api/lib/load_param.rb
b/services/api/lib/load_param.rb
index 7acf014ec6aaed42ecf91ac9501a8a852b7ba8bc..70387fe9165e34595d9cae9db9c90adee23433ee 100644
(file)
--- a/
services/api/lib/load_param.rb
+++ b/
services/api/lib/load_param.rb
@@
-105,7
+105,7
@@
module LoadParam
when String
begin
@select = Oj.load params[:select]
- raise unless @select.is_a? Array
+ raise unless @select.is_a? Array
or @select.nil?
rescue
raise ArgumentError.new("Could not parse \"select\" param as an array")
end