Use model accessors explicitly instead of #[]

#660
This commit is contained in:
Artur Beljajev 2018-01-30 19:33:00 +02:00
parent 762f891b84
commit cefa37d081
5 changed files with 6 additions and 6 deletions

View file

@ -1,5 +1,5 @@
- domain = Domain.new(@version.object.to_h)
- @version.object_changes.to_h.each{|k,v| domain[k]=v.last}
- @version.object_changes.to_h.each{|k,v| domain.public_send("#{k}=", v.last) }
- if @version
- children = HashWithIndifferentAccess.new(@version.children)