lib/gooddata/helpers/global_helpers_params.rb in gooddata-0.6.43 vs lib/gooddata/helpers/global_helpers_params.rb in gooddata-0.6.44
- old
+ new
@@ -24,10 +24,10 @@
# @param [Hash] params Parameters to be encoded
# @return [Hash] Encoded parameters
def encode_params(params, data_key)
res = {}
nested = {}
- core_types = [FalseClass, Fixnum, Float, NilClass, TrueClass, String]
+ core_types = [FalseClass, Integer, Float, NilClass, TrueClass, String]
params.each do |k, v|
if core_types.include?(v.class)
res[k] = v
else
nested[k] = v