lib/ebisu_connection/slave.rb in ebisu_connection-1.0.0 vs lib/ebisu_connection/slave.rb in ebisu_connection-2.0.0
- old
+ new
@@ -22,9 +22,13 @@
def connection
@connection ||= @connection_factory.new_connection
end
+ def active?
+ connection.active?
+ end
+
def disconnect!
if @connection
@connection.disconnect!
@connection = nil
end