lib/generators/administrate/dashboard/templates/dashboard.rb.erb in administrate-0.0.6 vs lib/generators/administrate/dashboard/templates/dashboard.rb.erb in administrate-0.0.7
- old
+ new
@@ -8,10 +8,10 @@
# Each different type represents an Administrate::Field object,
# which determines how the attribute is displayed
# on pages throughout the dashboard.
def attribute_types
{<% attributes.each do |attr| %>
- <%= attr %>: :<%= field_type(attr) %>,<% end %>
+ <%= attr %>: <%= field_type(attr) %>,<% end %>
}
end
# This method returns an array of attributes
# that will be displayed on the model's index page.