Method: NewRelic::Agent::Instrumentation::ActiveRecordPrepend::BaseExtensions#save

Defined in:
lib/new_relic/agent/instrumentation/active_record_prepend.rb,
lib/new_relic/agent/instrumentation/active_record_prepend.rb

#save(*args, **kwargs, &blk) ⇒ Object



15
16
17
18
19
# 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