14946: Fixes Fixnum deprecation warning.
[arvados.git] / services / api / app / controllers / application_controller.rb
index 89eabdcee2de14bd1d1ac1f38308a828e3c0f05c..b0778796962fcd1d19b2dfb1f1039d2a684fdae6 100644 (file)
@@ -237,7 +237,7 @@ class ApplicationController < ActionController::Base
               conditions[0] << " and #{ar_table_name}.#{attr} in (?)"
               conditions << value
             end
-          elsif value.is_a? String or value.is_a? Fixnum or value == true or value == false
+          elsif value.is_a? String or value.is_a? Integer or value == true or value == false
             conditions[0] << " and #{ar_table_name}.#{attr}=?"
             conditions << value
           elsif value.is_a? Hash