method

identity

rails latest stable - Class: ActiveRecord::LogSubscriber

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.0.2) is shown here.

identity(event)
public

No documentation available.

# 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