lib/active_admin/views/components/attributes_table.rb in activeadmin-2.8.0 vs lib/active_admin/views/components/attributes_table.rb in activeadmin-2.8.1

- old
+ new

@@ -26,11 +26,11 @@ if options[:class] classes << options[:class] elsif title.present? classes << "row-#{title.to_s.parameterize(separator: "_")}" end - options[:class] = classes.join(' ') + options[:class] = classes.join(" ") @table << tr(options) do th do header_content_for(title) end @@ -43,11 +43,11 @@ end protected def default_id_for_prefix - 'attributes_table' + "attributes_table" end # Build Colgroups # # Colgroups are only necessary for a collection of records; not @@ -73,10 +73,10 @@ attr.to_s.titleize end end def empty_value - span I18n.t('active_admin.empty'), class: "empty" + span I18n.t("active_admin.empty"), class: "empty" end def content_for(record, attr) value = helpers.format_attribute record, attr value.blank? && current_arbre_element.children.to_s.empty? ? empty_value : value