app/views/admin/base/tree.html.haml in redde-0.3.1 vs app/views/admin/base/tree.html.haml in redde-0.3.2
- old
+ new
@@ -1,10 +1,10 @@
= page_header
- res_collection = instance_variable_get("@#{collection}")
- if res_collection.any?
- cache [model_name.maximum(:updated_at).to_i] do
- %ol.sort-tree{ 'data-sort-tree' => '' }= render partial: 'tree_item', collection: res_collection, as: :item
+ = redde_tree res_collection
- else
%h3
Ни одной
#{tplural(model_name)}