From 8db09aaacf95bceb967daf476dd6420d5bc4d7c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Erik=20=C3=95unapuu?= Date: Mon, 1 Jun 2020 13:54:21 +0300 Subject: [PATCH] Use .touch instead of paper_trail.touch_with_version touch_with_version was removed from newer version of PaperTrail --- app/models/concerns/versions.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/concerns/versions.rb b/app/models/concerns/versions.rb index 0f1eab0af..b7ea82f2a 100644 --- a/app/models/concerns/versions.rb +++ b/app/models/concerns/versions.rb @@ -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