diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-03 20:39:42 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-03 20:39:42 +0100 |
commit | 6fbe9ef2ffb1858027130789246f3ae24a0a182f (patch) | |
tree | 6926a804d3b78021e421470518bf10d2ca919ef9 /activerecord/lib/active_record/connection_adapters | |
parent | 4796be33a464a4587d0e22dfef113aca597c91c4 (diff) | |
download | rails-6fbe9ef2ffb1858027130789246f3ae24a0a182f.tar.gz rails-6fbe9ef2ffb1858027130789246f3ae24a0a182f.tar.bz2 rails-6fbe9ef2ffb1858027130789246f3ae24a0a182f.zip |
Use namespaces in notifications.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rwxr-xr-x | activerecord/lib/active_record/connection_adapters/abstract_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb index d09aa3c4d2..ba12dcd9ce 100755 --- a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb @@ -201,7 +201,7 @@ module ActiveRecord protected def log(sql, name) result = nil - ActiveSupport::Notifications.instrument(:sql, :sql => sql, :name => name) do + ActiveSupport::Notifications.instrument("activerecord.sql", :sql => sql, :name => name) do @runtime += Benchmark.ms { result = yield } end result |