Permalink
Browse files

Use params default.

  • Loading branch information...
1 parent 861cdc4 commit b8df3a9197252ec62f390ef1f8cd0e0e827c6252 @miloops miloops committed with tenderlove Nov 20, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
@@ -204,8 +204,7 @@ def current_savepoint_name
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

0 comments on commit b8df3a9

Please sign in to comment.