mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 01:36:02 +02:00
nameserver change tracking
This commit is contained in:
parent
ed34483bc2
commit
6b783fd45e
8 changed files with 44 additions and 26 deletions
|
@ -41,6 +41,9 @@ class DomainContact < ActiveRecord::Base
|
|||
def domain_snapshot
|
||||
# We don't create a version unless domain is valid, is that a good idea?
|
||||
return true unless PaperTrail.enabled?
|
||||
return true if domain.nil?
|
||||
return true if contact.nil?
|
||||
return true if domain.versions.last.try(:snapshot) == domain.try(:create_snapshot)
|
||||
domain.touch_with_version if domain.valid?
|
||||
true
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue