mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
Fixed version showing for pre-archive items
This commit is contained in:
parent
dea02eeba9
commit
995cfcee9c
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ class DomainVersion < PaperTrail::Version
|
|||
self.sequence_name = :domain_version_id_seq
|
||||
|
||||
def load_snapshot
|
||||
YAML.load(snapshot)
|
||||
snapshot ? YAML.load(snapshot) : {}
|
||||
end
|
||||
|
||||
def previous?
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
%tbody
|
||||
- @versions.each do |version|
|
||||
%tr
|
||||
- children = YAML.load(version.snapshot)
|
||||
- children = version.load_snapshot
|
||||
- next unless children.is_a?(Hash)
|
||||
- children = HashWithIndifferentAccess.new(children)
|
||||
- changes = version.changed_elements
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue