app/views/mongoid_forums/forums/index.haml in ack-mongoid-forums-1.0.5 vs app/views/mongoid_forums/forums/index.haml in ack-mongoid-forums-1.0.6
- old
+ new
@@ -19,10 +19,10 @@
%th
Unread topics
%th
Views
- - category.forums.asc(:position).each do |forum|
+ - category.forums.sorted.each do |forum|
%tr
%td
= link_to forum.name, forum
%td
- if forum.topics.select {|topic| can?(:read, topic) }.last