lib/raven/breadcrumbs/activesupport.rb in sentry-raven-3.0.0 vs lib/raven/breadcrumbs/activesupport.rb in sentry-raven-3.0.1
- old
+ new
@@ -1,19 +1,19 @@
module Raven
module ActiveSupportBreadcrumbs
class << self
- def add(name, started, _finished, _unique_id, data)
- Raven.breadcrumbs.record do |crumb|
- crumb.data = data
- crumb.category = name
- crumb.timestamp = started.to_i
- end
+ def add(name, started, _finished, _unique_id, data)
+ Raven.breadcrumbs.record do |crumb|
+ crumb.data = data
+ crumb.category = name
+ crumb.timestamp = started.to_i
end
+ end
- def inject
- ActiveSupport::Notifications.subscribe(/.*/) do |name, started, finished, unique_id, data|
- add(name, started, finished, unique_id, data)
- end
+ def inject
+ ActiveSupport::Notifications.subscribe(/.*/) do |name, started, finished, unique_id, data|
+ add(name, started, finished, unique_id, data)
end
+ end
end
end
end