lib/db_charmer/connection_proxy.rb in db-charmer-1.7.0.pre1 vs lib/db_charmer/connection_proxy.rb in db-charmer-1.7.0.pre2

- old
+ new

@@ -1,7 +1,10 @@ # Simple proxy that sends all method calls to a real database connection module DbCharmer - class ConnectionProxy < BlankSlate + class ConnectionProxy < ActiveSupport::BasicObject + # We need to do this because in Rails 2.3 BasicObject does not remove object_id method, which is stupid + undef_method(:object_id) if instance_methods.member?('object_id') + def initialize(abstract_class, db_name) @abstract_connection_class = abstract_class @db_name = db_name end