lib/generators/administrate/dashboard/templates/dashboard.rb.erb in administrate-0.0.4 vs lib/generators/administrate/dashboard/templates/dashboard.rb.erb in administrate-0.0.6

- old
+ new

@@ -14,11 +14,14 @@ } end # This method returns an array of attributes # that will be displayed on the model's index page. + # + # By default, it's limited to four items to reduce clutter on index pages. + # Feel free to remove the limit or customize the returned array. def table_attributes - attributes + attributes.first(<%= TABLE_ATTRIBUTE_LIMIT %>) end # This method returns an array of attributes # that will be displayed on the model's show page def show_page_attributes