lib/rubyrep/proxy_connection.rb in rubyrep-1.0.5 vs lib/rubyrep/proxy_connection.rb in rubyrep-1.0.6

- old
+ new

@@ -196,24 +196,17 @@ self.connection = ConnectionExtenders.db_connect config self.config = config self.manual_primary_keys = {} end - # Checks if the connection is still active and if not, reestablished it. - def refresh - unless self.connection.active? - self.connection = ConnectionExtenders.db_connect config - end - end - # Destroys the session def destroy - self.connection.disconnect! - cursors.each_key do |cursor| cursor.destroy end cursors.clear + + self.connection.disconnect! end # Quotes the given value. It is assumed that the value belongs to the specified column name and table name. # Caches the column objects for higher speed. def quote_value(table, column, value)