lib/generators/ab_admin/model/templates/resource.erb in ab_admin-0.3.6 vs lib/generators/ab_admin/model/templates/resource.erb in ab_admin-0.4.0

- old
+ new

@@ -1,8 +1,8 @@ class AbAdmin<%= model.name %> < AbAdmin::AbstractResource <% if model.respond_to?(:acts_as_nested_set_options) -%> - settings index_view: 'tree', search: false, batch: false, well: false + settings index_view: 'tree' <% else -%> table do <% index_attrs.without('id', 'updated_at').each do |attr| -%> field :<%= attr -%><%= ', sortable: false' if translated_columns.include?(attr) %> <% end -%> \ No newline at end of file