module NewRelic::Agent::Instrumentation::ActiveRecordPrepend::BaseExtensions

Public Instance Methods

save(*args, &blk) click to toggle source
Calls superclass method
# File lib/new_relic/agent/instrumentation/active_record_prepend.rb, line 15
def save(*args, &blk)
  ::NewRelic::Agent.with_database_metric_name(self.class.name, nil, ACTIVE_RECORD) do
    super
  end
end
save!(*args, &blk) click to toggle source
Calls superclass method
# File lib/new_relic/agent/instrumentation/active_record_prepend.rb, line 21
def save!(*args, &blk)
  ::NewRelic::Agent.with_database_metric_name(self.class.name, nil, ACTIVE_RECORD) do
    super
  end
end