mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
avoid const lookup. we know what these constants are in advance
This commit is contained in:
@@ -10,10 +10,10 @@ module ActiveRecord
|
||||
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 @@ module ActiveRecord
|
||||
end
|
||||
end
|
||||
|
||||
ActiveRecord::LogSubscriber.attach_to :active_record
|
||||
ActiveRecord::LogSubscriber.attach_to :active_record
|
||||
|
||||
Reference in New Issue
Block a user