Skip to content

Commit 3fa1703

Browse files
koicctran
authored andcommitted
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`
1 parent 1a64730 commit 3fa1703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/annotate/annotate_models.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def quote(value)
168168
when NilClass then 'NULL'
169169
when TrueClass then 'TRUE'
170170
when FalseClass then 'FALSE'
171-
when Float, Fixnum, Bignum then value.to_s
171+
when Float, Integer then value.to_s
172172
# BigDecimals need to be output in a non-normalized form and quoted.
173173
when BigDecimal then value.to_s('F')
174174
when Array then value.map {|v| quote(v)}

0 commit comments

Comments
 (0)