Commit 3473d3607a53cd0107050401e9a2dd76ffa9ed9f
1 parent
de1e0f89
Exists in
master
and in
1 other branch
Update docs with how to use fingerprint strategies
Showing
1 changed file
with
13 additions
and
0 deletions
Show diff stats
README.md
@@ -409,6 +409,19 @@ end | @@ -409,6 +409,19 @@ end | ||
409 | 409 | ||
410 | Then get the `notifier.js` from `errbit/public/javascript/notifier.js` and add to `application.js` on your rails app or include `http://YOUR-ERRBIT-HOST/javascripts/notifier.js` on your `application.html.erb.` | 410 | Then get the `notifier.js` from `errbit/public/javascript/notifier.js` and add to `application.js` on your rails app or include `http://YOUR-ERRBIT-HOST/javascripts/notifier.js` on your `application.html.erb.` |
411 | 411 | ||
412 | +Using custom fingerprinting methods | ||
413 | +----------------------------------- | ||
414 | + | ||
415 | +Errbit now allows you to easily use your own Fingerprint Strategy if that's what you'd like to do. If you are upgrading from a very old version of errbit, you can use the `LegacyFingerprint` to provide yourself | ||
416 | +with compatibility. The fingerprint strategy can be changed by adding an initializer to errbit: | ||
417 | + | ||
418 | +```ruby | ||
419 | +# config/fingerprint.rb | ||
420 | +ErrorReport.fingerprint_strategy = LegacyFingerprint | ||
421 | +``` | ||
422 | + | ||
423 | +The easiest way to add custom fingerprint methods is to simply subclass `Fingerprint` | ||
424 | + | ||
412 | Issue Trackers | 425 | Issue Trackers |
413 | -------------- | 426 | -------------- |
414 | 427 |