Use .touch instead of paper_trail.touch_with_version

touch_with_version was removed from newer version of PaperTrail
This commit is contained in:
Karl Erik Õunapuu 2020-06-01 13:54:21 +03:00
parent c74ab91db3
commit 8db09aaacf

View file

@ -51,11 +51,11 @@ module Versions
# callbacks
def touch_domain_version
domain.paper_trail.try(:touch_with_version)
domain.try(:touch)
end
def touch_domains_version
domains.each { |domain| domain.paper_trail.touch_with_version }
domains.each { |domain| domain.touch }
end
end