mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
Use .touch instead of paper_trail.touch_with_version
touch_with_version was removed from newer version of PaperTrail
This commit is contained in:
parent
c74ab91db3
commit
8db09aaacf
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue