Module: Fiveruns::Tuneup::Instrumentation::ActiveRecord::Base::ClassMethods
- Defined in:
- lib/fiveruns/tuneup/instrumentation/active_record/base.rb
Instance Method Summary collapse
-
#create_with_fiveruns_tuneup(*args, &block) ⇒ Object
CREATE.
- #delete_all_with_fiveruns_tuneup(*args, &block) ⇒ Object
- #delete_with_fiveruns_tuneup(*args, &block) ⇒ Object
- #destroy_all_with_fiveruns_tuneup(*args, &block) ⇒ Object
-
#destroy_with_fiveruns_tuneup(*args, &block) ⇒ Object
DELETES.
- #find_by_sql_with_fiveruns_tuneup(conditions, &block) ⇒ Object
-
#find_with_fiveruns_tuneup(*args, &block) ⇒ Object
FINDS.
- #update_all_with_fiveruns_tuneup(*args, &block) ⇒ Object
-
#update_with_fiveruns_tuneup(*args, &block) ⇒ Object
UPDATES.
Instance Method Details
#create_with_fiveruns_tuneup(*args, &block) ⇒ Object
CREATE
43 44 45 46 47 |
# File 'lib/fiveruns/tuneup/instrumentation/active_record/base.rb', line 43 def create_with_fiveruns_tuneup(*args, &block) Fiveruns::Tuneup::Instrumentation::ActiveRecord::Base.record self, "Create #{self.name}" do create_without_fiveruns_tuneup(*args, &block) end end |
#delete_all_with_fiveruns_tuneup(*args, &block) ⇒ Object
83 84 85 86 87 |
# File 'lib/fiveruns/tuneup/instrumentation/active_record/base.rb', line 83 def delete_all_with_fiveruns_tuneup(*args, &block) Fiveruns::Tuneup::Instrumentation::ActiveRecord::Base.record self, "Delete #{self.name} (All)" do delete_all_without_fiveruns_tuneup(*args, &block) end end |
#delete_with_fiveruns_tuneup(*args, &block) ⇒ Object
78 79 80 81 82 |
# File 'lib/fiveruns/tuneup/instrumentation/active_record/base.rb', line 78 def delete_with_fiveruns_tuneup(*args, &block) Fiveruns::Tuneup::Instrumentation::ActiveRecord::Base.record self, "Delete #{self.name}" do delete_without_fiveruns_tuneup(*args, &block) end end |
#destroy_all_with_fiveruns_tuneup(*args, &block) ⇒ Object
73 74 75 76 77 |
# File 'lib/fiveruns/tuneup/instrumentation/active_record/base.rb', line 73 def destroy_all_with_fiveruns_tuneup(*args, &block) Fiveruns::Tuneup::Instrumentation::ActiveRecord::Base.record self, "Destroy #{self.name} (All)" do destroy_all_without_fiveruns_tuneup(*args, &block) end end |
#destroy_with_fiveruns_tuneup(*args, &block) ⇒ Object
DELETES
68 69 70 71 72 |
# File 'lib/fiveruns/tuneup/instrumentation/active_record/base.rb', line 68 def destroy_with_fiveruns_tuneup(*args, &block) Fiveruns::Tuneup::Instrumentation::ActiveRecord::Base.record self, "Destroy #{self.name}" do destroy_without_fiveruns_tuneup(*args, &block) end end |
#find_by_sql_with_fiveruns_tuneup(conditions, &block) ⇒ Object
33 34 35 36 37 |
# File 'lib/fiveruns/tuneup/instrumentation/active_record/base.rb', line 33 def find_by_sql_with_fiveruns_tuneup(conditions, &block) Fiveruns::Tuneup::Instrumentation::ActiveRecord::Base.record self, "Find #{self.name} by SQL", sanitize_sql(conditions) do find_by_sql_without_fiveruns_tuneup(conditions, &block) end end |
#find_with_fiveruns_tuneup(*args, &block) ⇒ Object
FINDS
28 29 30 31 32 |
# File 'lib/fiveruns/tuneup/instrumentation/active_record/base.rb', line 28 def find_with_fiveruns_tuneup(*args, &block) Fiveruns::Tuneup::Instrumentation::ActiveRecord::Base.record self, "Find #{self.name}" do find_without_fiveruns_tuneup(*args, &block) end end |
#update_all_with_fiveruns_tuneup(*args, &block) ⇒ Object
58 59 60 61 62 |
# File 'lib/fiveruns/tuneup/instrumentation/active_record/base.rb', line 58 def update_all_with_fiveruns_tuneup(*args, &block) Fiveruns::Tuneup::Instrumentation::ActiveRecord::Base.record self, "Update #{self.name} (All)" do update_all_without_fiveruns_tuneup(*args, &block) end end |
#update_with_fiveruns_tuneup(*args, &block) ⇒ Object
UPDATES
53 54 55 56 57 |
# File 'lib/fiveruns/tuneup/instrumentation/active_record/base.rb', line 53 def update_with_fiveruns_tuneup(*args, &block) Fiveruns::Tuneup::Instrumentation::ActiveRecord::Base.record self, "Update #{self.name}" do update_without_fiveruns_tuneup(*args, &block) end end |