diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-11-21 00:41:39 +0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-24 01:37:00 +0800 |
commit | b8df3a9197252ec62f390ef1f8cd0e0e827c6252 (patch) | |
tree | cdb7d3c41b1bac72563dc1911d49dac7d3e3b182 /activerecord/lib | |
parent | 861cdc4c59dabdc8cca42a9f29b7cccb3cd23505 (diff) | |
download | rails-b8df3a9197252ec62f390ef1f8cd0e0e827c6252.tar.gz rails-b8df3a9197252ec62f390ef1f8cd0e0e827c6252.tar.bz2 rails-b8df3a9197252ec62f390ef1f8cd0e0e827c6252.zip |
Use params default.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract_adapter.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb index f3fba9a3a9..0282493219 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb @@ -204,8 +204,7 @@ module ActiveRecord protected - def log(sql, name) - name ||= "SQL" + def log(sql, name = "SQL") @instrumenter.instrument("sql.active_record", :sql => sql, :name => name, :connection_id => object_id) do yield |