no need to specify self
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user