Permalink
Browse files

Merge pull request #213 from Gerard-at-Streamit/fixnum_deprecated

Use of Fixnum is deprecated. Patch compatible with Ruby versions < 2.4.
  • Loading branch information...
dgutov committed Jan 26, 2018
2 parents f26d85f + 5fb846b commit 99aa05b337ed1fca3759e85e71c4e928d3e3ff7c
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/active_record/connection_adapters/em_mysql2_adapter.rb
@@ -24,7 +24,7 @@ def self.em_mysql2_connection(config)
variable_assignments << "NAMES '#{encoding}'" if encoding
wait_timeout = config[:wait_timeout]
- wait_timeout = 2592000 unless wait_timeout.is_a?(Fixnum)
+ wait_timeout = 2592000 unless wait_timeout.is_a?(Integer)
variable_assignments << "@@wait_timeout = #{wait_timeout}"
conn.query("SET #{variable_assignments.join(', ')}")

0 comments on commit 99aa05b

Please sign in to comment.