module Octoshark::ActiveRecordAbstractAdapter

Attributes

connection_name[RW]
database_name[RW]

Public Instance Methods

log(sql, name = "SQL", *other_args, **kwargs, &block) click to toggle source
Calls superclass method
# File lib/octoshark/active_record_extensions.rb, line 29
def log(sql, name = "SQL", *other_args, **kwargs, &block)
  if connection_name || database_name
    name = "[Octoshark: #{[connection_name, database_name].compact.join(' ')}] #{name}"
  end

  super(sql, name, *other_args, **kwargs, &block)
end