lib/active_admin/views/components/attributes_table.rb in activeadmin-1.0.0.pre4 vs lib/active_admin/views/components/attributes_table.rb in activeadmin-1.0.0.pre5

- old
+ new

@@ -77,10 +77,10 @@ def empty_value span I18n.t('active_admin.empty'), class: "empty" end def content_for(record, attr) - value = format_attribute record, attr + value = helpers.format_attribute record, attr value.blank? && current_arbre_element.children.to_s.empty? ? empty_value : value # Don't add the same Arbre twice, while still allowing format_attribute to call status_tag current_arbre_element << value unless current_arbre_element.children.include? value end