Commit ca82429093fb69c28f1fe6cbb3489d63aed02dea

Authored by Arthur Neves
1 parent 1ddf7150
Exists in master and in 1 other branch production

Remove unused hash

[fixes #636]
db/migrate/20121005142110_regenerate_err_fingerprints.rb
1 1 class RegenerateErrFingerprints < Mongoid::Migration
2 2 def self.up
3 3 Err.all.each do |err|
4   - if err.notices.any?
5   - fingerprint_source = {
6   - :backtrace => err.notices.first.backtrace_id,
7   - :error_class => err.error_class,
8   - :component => err.component,
9   - :action => err.action,
10   - :environment => err.environment,
11   - :api_key => err.app.api_key
12   - }
  4 + if err.notices.any? && err.problem
13 5 err.update_attribute(
14 6 :fingerprint,
15 7 Fingerprint.generate(err.notices.first, err.app.api_key)
... ...