提交 88192b9b 编写于 作者: D David Heinemeier Hansson

Added that query benchmarking will only happen if its going to be logged anyway #344

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@227 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 830c561e
*SVN*
* Added that query benchmarking will only happen if its going to be logged anyway #344
* Added higher_item and lower_item as public methods for acts_as_list #342 [Tobias Luetke]
* Added respondence to *_before_type_cast for all attributes to return their string-state before they were type casted by the column type.
......
......@@ -349,7 +349,7 @@ def structure_dump() end
protected
def log(sql, name, connection, &action)
begin
if @logger.nil?
if @logger.nil? || @logger.level > Logger::INFO
action.call(connection)
else
result = nil
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册