replace git.io link

@see
https://github.blog/changelog/2022-04-25-git-io-deprecation/
This commit is contained in:
wonda-tea-coffee 2022-04-27 13:58:30 +09:00
parent 31d8207fc9
commit a0358eaa3d
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ After upgrading to PaperTrail 5, you see this warning:
## You want to track whodunnit
Add `before_action :set_paper_trail_whodunnit` to your ApplicationController.
See the PaperTrail readme for an example (https://git.io/vrsbt).
See the PaperTrail readme for an example (https://github.com/paper-trail-gem/paper_trail#4a-finding-out-who-was-responsible-for-a-change).
## You don't want to track whodunnit

View File

@ -14,8 +14,8 @@ module PaperTrail
# @param object (Hash | HashWithIndifferentAccess) - Coming from
# `recordable_object` `object` will be a plain `Hash`. However, due to
# recent [memory optimizations](https://git.io/fjeYv), when coming from
# `recordable_object_changes`, it will be a `HashWithIndifferentAccess`.
# recent [memory optimizations](https://github.com/paper-trail-gem/paper_trail/pull/1189),
# when coming from `recordable_object_changes`, it will be a `HashWithIndifferentAccess`.
def dump(object)
object = object.to_hash if object.is_a?(HashWithIndifferentAccess)
::YAML.dump object