whoops 0.3 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/whoops/event_group.rb +2 -2
- data/lib/whoops/engine.rb +4 -0
- metadata +3 -2
@@ -31,6 +31,8 @@ class Whoops::EventGroup
|
|
31
31
|
end
|
32
32
|
|
33
33
|
if event_group.valid?
|
34
|
+
event_group.archived = false
|
35
|
+
event_group.handle_archival
|
34
36
|
event_group.event_count += 1
|
35
37
|
event_group.send_notifications
|
36
38
|
event_group.save
|
@@ -44,8 +46,6 @@ class Whoops::EventGroup
|
|
44
46
|
|
45
47
|
validates_presence_of :event_group_identifier, :event_type, :service, :message
|
46
48
|
|
47
|
-
before_save :handle_archival
|
48
|
-
|
49
49
|
def self.identifying_fields
|
50
50
|
field_names - ["message", "last_recorded_at"]
|
51
51
|
end
|
data/lib/whoops/engine.rb
CHANGED
@@ -3,5 +3,9 @@ module Whoops
|
|
3
3
|
initializer "static assets" do |app|
|
4
4
|
app.middleware.use ::ActionDispatch::Static, File.expand_path("../../../app/assets/javascripts", __FILE__)
|
5
5
|
end
|
6
|
+
|
7
|
+
initializer "default whoops sender", :before => :load_config_initializers do |app|
|
8
|
+
app.config.whoops_sender ||= nil
|
9
|
+
end
|
6
10
|
end
|
7
11
|
end
|
metadata
CHANGED