提交 ad4ef422 编写于 作者: A Aaron Patterson

avoid const lookup. we know what these constants are in advance

上级 dd4e81df
......@@ -10,10 +10,10 @@ def sql(event)
sql = event.payload[:sql].squeeze(' ')
if odd?
name = color(name, :cyan, true)
name = color(name, CYAN, true)
sql = color(sql, nil, true)
else
name = color(name, :magenta, true)
name = color(name, MAGENTA, true)
end
debug " #{name} #{sql}"
......@@ -29,4 +29,4 @@ def logger
end
end
ActiveRecord::LogSubscriber.attach_to :active_record
\ No newline at end of file
ActiveRecord::LogSubscriber.attach_to :active_record
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册