lib/sequel/extensions/connection_expiration.rb in sequel-4.49.0 vs lib/sequel/extensions/connection_expiration.rb in sequel-5.0.0
- old
+ new
@@ -38,10 +38,10 @@
# Defaults to 14400 seconds (4 hours).
attr_accessor :connection_expiration_timeout
# Initialize the data structures used by this extension.
def self.extended(pool)
- pool.instance_eval do
+ pool.instance_exec do
sync do
@connection_expiration_timestamps ||= {}
@connection_expiration_timeout ||= 14400
end
end