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
|
self.sequence_name = :domain_version_id_seq
|
||||||
|
|
||||||
def load_snapshot
|
def load_snapshot
|
||||||
YAML.load(snapshot)
|
snapshot ? YAML.load(snapshot) : {}
|
||||||
end
|
end
|
||||||
|
|
||||||
def previous?
|
def previous?
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
%tbody
|
%tbody
|
||||||
- @versions.each do |version|
|
- @versions.each do |version|
|
||||||
%tr
|
%tr
|
||||||
- children = YAML.load(version.snapshot)
|
- children = version.load_snapshot
|
||||||
- next unless children.is_a?(Hash)
|
- next unless children.is_a?(Hash)
|
||||||
- children = HashWithIndifferentAccess.new(children)
|
- children = HashWithIndifferentAccess.new(children)
|
||||||
- changes = version.changed_elements
|
- changes = version.changed_elements
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue