whoops 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/whoops/event.rb +6 -1
- metadata +4 -4
data/app/models/whoops/event.rb
CHANGED
@@ -18,7 +18,12 @@ class Whoops::Event
|
|
18
18
|
event_group_params[:last_recorded_at] = params[:event_time]
|
19
19
|
|
20
20
|
event_group = Whoops::EventGroup.first(:conditions => event_group_params.slice(*Whoops::EventGroup.identifying_fields))
|
21
|
-
event_group
|
21
|
+
if event_group
|
22
|
+
event_group.attributes = event_group_params
|
23
|
+
event_group.save
|
24
|
+
else
|
25
|
+
event_group = Whoops::EventGroup.create(event_group_params)
|
26
|
+
end
|
22
27
|
|
23
28
|
event_params = params.slice(*Whoops::Event.field_names)
|
24
29
|
event_group.events.create(event_params)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whoops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Daniel Higginbotham
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-06-
|
18
|
+
date: 2011-06-15 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|