no need to specify self

This commit is contained in:
Aaron Patterson 2011-01-05 11:08:21 -08:00
parent 102255330b
commit c7dce2c7b2

@ -60,7 +60,7 @@ def cache_sql(sql, binds)
result =
if @query_cache[sql].key?(binds)
ActiveSupport::Notifications.instrument("sql.active_record",
:sql => sql, :name => "CACHE", :connection_id => self.object_id)
:sql => sql, :name => "CACHE", :connection_id => object_id)
@query_cache[sql][binds]
else
@query_cache[sql][binds] = yield