Commit 709bdd00bb396ab9d9b33bb071343ac56fd0413a
1 parent
ed088890
Exists in
master
and in
1 other branch
Fix errs creation
Issue introduce with PR #254 and break spec
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/app.rb
... | ... | @@ -52,7 +52,7 @@ class App |
52 | 52 | Err.where( |
53 | 53 | :fingerprint => attrs[:fingerprint] |
54 | 54 | ).first || |
55 | - problems.create!(attrs.slice(:error_class, :environment)).errs.create!(attrs) | |
55 | + problems.create!(attrs.slice(:error_class, :environment)).errs.create!(attrs.slice(:fingerprint, :problem_id)) | |
56 | 56 | end |
57 | 57 | |
58 | 58 | # Mongoid Bug: find(id) on association proxies returns an Enumerator | ... | ... |