Module: Fiveruns::Tuneup::Instrumentation::ActiveRecord::Base::InstanceMethods
- Defined in:
- lib/fiveruns/tuneup/instrumentation/active_record/base.rb
Instance Method Summary collapse
-
#destroy_with_fiveruns_tuneup(*args, &block) ⇒ Object
DELETES.
- #save_with_fiveruns_tuneup(*args, &block) ⇒ Object
- #save_with_fiveruns_tuneup!(*args, &block) ⇒ Object
-
#update_with_fiveruns_tuneup(*args, &block) ⇒ Object
UPDATES.
Instance Method Details
#destroy_with_fiveruns_tuneup(*args, &block) ⇒ Object
DELETES
115 116 117 118 119 |
# File 'lib/fiveruns/tuneup/instrumentation/active_record/base.rb', line 115 def destroy_with_fiveruns_tuneup(*args, &block) Fiveruns::Tuneup::Instrumentation::ActiveRecord::Base.record self.class, "Destroy #{self.class.name}" do destroy_without_fiveruns_tuneup(*args, &block) end end |
#save_with_fiveruns_tuneup(*args, &block) ⇒ Object
100 101 102 103 104 |
# File 'lib/fiveruns/tuneup/instrumentation/active_record/base.rb', line 100 def save_with_fiveruns_tuneup(*args, &block) Fiveruns::Tuneup::Instrumentation::ActiveRecord::Base.record self.class, "Save #{self.class.name}" do save_without_fiveruns_tuneup(*args, &block) end end |
#save_with_fiveruns_tuneup!(*args, &block) ⇒ Object
105 106 107 108 109 |
# File 'lib/fiveruns/tuneup/instrumentation/active_record/base.rb', line 105 def save_with_fiveruns_tuneup!(*args, &block) Fiveruns::Tuneup::Instrumentation::ActiveRecord::Base.record self.class, "Save #{self.class.name}" do save_without_fiveruns_tuneup!(*args, &block) end end |
#update_with_fiveruns_tuneup(*args, &block) ⇒ Object
UPDATES
95 96 97 98 99 |
# File 'lib/fiveruns/tuneup/instrumentation/active_record/base.rb', line 95 def update_with_fiveruns_tuneup(*args, &block) Fiveruns::Tuneup::Instrumentation::ActiveRecord::Base.record self.class, "Update #{self.class.name}" do update_without_fiveruns_tuneup(*args, &block) end end |