whoops 0.3 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whoops
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- version: "0.3"
9
+ - 1
10
+ version: 0.3.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Daniel Higginbotham