diff --git a/lib/simple_audit/helper.rb b/lib/simple_audit/helper.rb index 5e53390..f68836e 100644 --- a/lib/simple_audit/helper.rb +++ b/lib/simple_audit/helper.rb @@ -19,13 +19,14 @@ def render_audits(audited_model) "\n" + audited_model.class.human_attribute_name(k) + ":" + - content_tag(:span, v.last, :class => 'current') + - content_tag(:span, v.first, :class => 'previous') + content_tag(:span, v.last, :class => 'current')+ + content_tag(:span, v.first, :class => 'previous') + end else audit.change_log.reject{|k, v| v.blank?}.collect {|k, v| "\n#{audited_model.class.human_attribute_name(k)}: #{v}"} end - changes.join + raw( changes.join ) end end end