Sha256: 4d0c699763084e7eb5bc0f7ea4647e30042c4f47b74cd6bef78c0c9057b2c32e

Contents?: true

Size: 703 Bytes

Versions: 7

Compression:

Stored size: 703 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

class User < ActiveRecord::Base
  include NewRelic::Agent::MethodTracer
  has_many :aliases

  add_method_tracer :save!
  add_method_tracer :persisted?
end

class Alias < ActiveRecord::Base
  include NewRelic::Agent::MethodTracer

  add_method_tracer :save!
  add_method_tracer :persisted?
  add_method_tracer :destroyed?
end

class Order < ActiveRecord::Base
  has_and_belongs_to_many :shipments, :join_table => 'order_shipments'
end

class Shipment < ActiveRecord::Base
  has_and_belongs_to_many :orders, :join_table => 'order_shipments'
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
newrelic_rpm-3.12.0.288 test/multiverse/suites/active_record/app/models/models.rb
newrelic_rpm-3.11.2.286 test/multiverse/suites/active_record/app/models/models.rb
newrelic_rpm-3.11.1.284 test/multiverse/suites/active_record/app/models/models.rb
newrelic_rpm-3.11.0.283 test/multiverse/suites/active_record/app/models/models.rb
newrelic_rpm-3.10.0.279 test/multiverse/suites/active_record/app/models/models.rb
newrelic_rpm-3.9.9.275 test/multiverse/suites/active_record/app/models/models.rb
newrelic_rpm-3.9.8.273 test/multiverse/suites/active_record/app/models/models.rb