lib/generators/administrate/dashboard/templates/dashboard.rb.erb in administrate-0.14.0 vs lib/generators/administrate/dashboard/templates/dashboard.rb.erb in administrate-0.15.0
- old
+ new
@@ -19,31 +19,31 @@
# By default, it's limited to four items to reduce clutter on index pages.
# Feel free to add, remove, or rearrange items.
COLLECTION_ATTRIBUTES = %i[
<%=
attributes.first(COLLECTION_ATTRIBUTE_LIMIT).map do |attr|
- " #{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 = %i[
<%=
attributes.map do |attr|
- " #{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 = %i[
<%=
form_attributes.map do |attr|
- " #{attr}"
+ " #{attr}"
end.join("\n")
%>
].freeze
# COLLECTION_FILTERS