instance method identity

Ruby on Rails 3.1.12

Since v3.1.12 Last seen in v4.0.13

Available in: v3.1.12 v3.2.22.5 v4.0.13

Signature

identity(event)

No documentation comment.

Parameters

event req
Source
# File activerecord/lib/active_record/log_subscriber.rb, line 49
    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 49 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::LogSubscriber

Type at least 2 characters to search.

↑↓ navigate · open · esc close