Method: ActiveSupport::Notifications::Event#record

Defined in:
activesupport/lib/active_support/notifications/instrumenter.rb

#recordObject

:nodoc:



132
133
134
135
136
137
138
139
140
141
142
143
# File 'activesupport/lib/active_support/notifications/instrumenter.rb', line 132

def record # :nodoc:
  start!
  begin
    yield payload if block_given?
  rescue Exception => e
    payload[:exception] = [e.class.name, e.message]
    payload[:exception_object] = e
    raise e
  ensure
    finish!
  end
end