lib/generators/administrate/dashboard/templates/dashboard.rb.erb in administrate-0.1.5 vs lib/generators/administrate/dashboard/templates/dashboard.rb.erb in administrate-0.2.0.rc1

- old
+ new

@@ -9,11 +9,11 @@ # on pages throughout the dashboard. ATTRIBUTE_TYPES = { <% attributes.each do |attr| -%> <%= attr %>: <%= field_type(attr) %>, <% end -%> - } + }.freeze # COLLECTION_ATTRIBUTES # 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. @@ -22,31 +22,31 @@ <%= attributes.first(COLLECTION_ATTRIBUTE_LIMIT).map do |attr| " :#{attr}," end.join("\n") %> - ] + ].freeze # SHOW_PAGE_ATTRIBUTES # an array of attributes that will be displayed on the model's show page. SHOW_PAGE_ATTRIBUTES = [ <%= attributes.map do |attr| " :#{attr}," end.join("\n") %> - ] + ].freeze # FORM_ATTRIBUTES # an array of attributes that will be displayed # on the model's form (`new` and `edit`) pages. FORM_ATTRIBUTES = [ <%= form_attributes.map do |attr| " :#{attr}," end.join("\n") %> - ] + ].freeze # Overwrite this method to customize how <%= file_name.pluralize.humanize.downcase %> are displayed # across all pages of the admin dashboard. # # def display_resource(<%= file_name %>)