Commit 3fa1703e by Koichi ITO Committed by Cuong Tran

Fix deprecated warnings in Ruby 2.4.0+ (#415)

Ruby 2.4.0 unifies Fixnum and Bignum into Integer. https://bugs.ruby-lang.org/issues/12005 Fix following deprecated warnings in Ruby 2.4.0-preview3. - `warning: constant ::Fixnum is deprecated` - `warning: constant ::Bignum is deprecated`
parent 1a647302
......@@ -168,7 +168,7 @@ module AnnotateModels
when NilClass then 'NULL'
when TrueClass then 'TRUE'
when FalseClass then 'FALSE'
when Float, Fixnum, Bignum then value.to_s
when Float, Integer then value.to_s
# BigDecimals need to be output in a non-normalized form and quoted.
when BigDecimal then value.to_s('F')
when Array then value.map {|v| quote(v)}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment