lib/active_admin/views/components/attributes_table.rb in activeadmin-0.2.2 vs lib/active_admin/views/components/attributes_table.rb in activeadmin-0.3.0
- old
+ new
@@ -33,14 +33,14 @@
def default_id_for_prefix
'attributes_table'
end
def header_content_for(attr)
- attr.to_s.titleize
+ @record.class.respond_to?(:human_attribute_name) ? @record.class.human_attribute_name(attr).titleize : attr.to_s.titleize
end
def empty_value
- span "Empty", :class => "empty"
+ span I18n.t('active_admin.empty'), :class => "empty"
end
def content_for(attr_or_proc)
value = case attr_or_proc
when Proc