Commit 709bdd00bb396ab9d9b33bb071343ac56fd0413a

Authored by Cyril Mougel
1 parent ed088890
Exists in master and in 1 other branch production

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,7 +52,7 @@ class App
52 Err.where( 52 Err.where(
53 :fingerprint => attrs[:fingerprint] 53 :fingerprint => attrs[:fingerprint]
54 ).first || 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 end 56 end
57 57
58 # Mongoid Bug: find(id) on association proxies returns an Enumerator 58 # Mongoid Bug: find(id) on association proxies returns an Enumerator