19015: installer fix: work around a Passenger issue with the detection of RVM
[arvados.git] / services / api / lib / load_param.rb
index 203c9c078952a9c1403cc1015717ef2737d6655a..9a360c538b6e432e36ad72cfe00d98493af925b6 100644 (file)
@@ -145,8 +145,7 @@ module LoadParam
       end
     end
 
-    @distinct = true if (params[:distinct] == true || params[:distinct] == "true")
-    @distinct = false if (params[:distinct] == false || params[:distinct] == "false")
+    @distinct = params[:distinct] && true
   end
 
   def load_select_param