diff --git a/app/models/journal.rb b/app/models/journal.rb index 8c2a9e6a1f..9835b19619 100644 --- a/app/models/journal.rb +++ b/app/models/journal.rb @@ -139,7 +139,7 @@ class Journal < ActiveRecord::Base return {} if data.nil? if @changes.nil? - @changes = {} + @changes = HashWithIndifferentAccess.new if predecessor.nil? @changes = data.journaled_attributes.select{|_,v| !v.nil?}