<% published ||= {} %> <% diff_keys = published.diff(current).keys %>
<% if diff_keys.count > 0 %> <% diff_keys.each do |key| %> <%# if !published.is_a? Hash and !published.is_a? Array %> <%# end %> <%#= render :partial => 'review_and_approve/line_item', :locals => {:published => published[key], :current => current[key], :key => key, :depth => 0} %> <% end %>
Field Name Published Value Current Value
<%= key rescue "" %><%= published || "" %> <%= current || "" %>
<% else %> Latest version is published <% end %>