Make changes a hash with indifferent access

pull/1028/head
Hagen Schink 11 years ago
parent abe3d9cac9
commit 66ad6d6b76
  1. 2
      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?}

Loading…
Cancel
Save