lib/generators/administrate/dashboard/templates/dashboard.rb.erb in administrate-0.1.2 vs lib/generators/administrate/dashboard/templates/dashboard.rb.erb in administrate-0.1.3

- old
+ new

@@ -26,10 +26,16 @@ %> ] # SHOW_PAGE_ATTRIBUTES # an array of attributes that will be displayed on the model's show page. - SHOW_PAGE_ATTRIBUTES = ATTRIBUTE_TYPES.keys + SHOW_PAGE_ATTRIBUTES = [ +<%= + attributes.map do |attr| + " :#{attr}," + end.join("\n") +%> + ] # FORM_ATTRIBUTES # an array of attributes that will be displayed # on the model's form (`new` and `edit`) pages. FORM_ATTRIBUTES = [