Skip to content

Commit

Permalink
Fix errs creation
Browse files Browse the repository at this point in the history
Issue introduce with PR #254 and break spec
  • Loading branch information
shingara committed Aug 19, 2013
1 parent ed08889 commit 709bdd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def find_or_create_err!(attrs)
Err.where(
:fingerprint => attrs[:fingerprint]
).first ||
problems.create!(attrs.slice(:error_class, :environment)).errs.create!(attrs)
problems.create!(attrs.slice(:error_class, :environment)).errs.create!(attrs.slice(:fingerprint, :problem_id))
end

# Mongoid Bug: find(id) on association proxies returns an Enumerator
Expand Down

0 comments on commit 709bdd0

Please sign in to comment.