instance method
identity
Ruby on Rails 4.0.13
Since v3.1.12 Last seen in v4.0.13Signature
identity(event)
No documentation comment.
Parameters
-
eventreq
Source
# File activerecord/lib/active_record/log_subscriber.rb, line 63
def identity(event)
return unless logger.debug?
name = color(event.payload[:name], odd? ? CYAN : MAGENTA, true)
line = odd? ? color(event.payload[:line], nil, true) : event.payload[:line]
debug " #{name} #{line}"
end
Defined in activerecord/lib/active_record/log_subscriber.rb line 63
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::LogSubscriber