Module: MassiveRecord::ORM::QueryInstrumentation::Operations
- Defined in:
- lib/massive_record/orm/query_instrumentation.rb
Instance Method Summary collapse
Instance Method Details
#store_record_to_database(action, attribute_names_to_update = []) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/massive_record/orm/query_instrumentation.rb', line 27 def store_record_to_database(action, attribute_names_to_update = []) description = action + " id: #{record.id}," description += " attributes: #{attribute_names_to_update.join(', ')}" if attribute_names_to_update.any? ActiveSupport::Notifications.instrument("query.massive_record", { :name => [klass.model_name, 'save'].join(' '), :description => description }) do super end end |