diff options
Diffstat (limited to 'app/controllers/nodes_controller.rb')
| -rw-r--r-- | app/controllers/nodes_controller.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb index ca30976f..447d596d 100644 --- a/app/controllers/nodes_controller.rb +++ b/app/controllers/nodes_controller.rb | |||
| @@ -20,9 +20,7 @@ class NodesController < ApplicationController | |||
| 20 | ] | 20 | ] |
| 21 | 21 | ||
| 22 | def index | 22 | def index |
| 23 | @nodes = Node.root.descendants.includes(:head, :draft) | 23 | @nodes = index_matching(Node.root.descendants) |
| 24 | .order('id DESC') | ||
| 25 | .paginate(:page => params[:page], :per_page => 25) | ||
| 26 | end | 24 | end |
| 27 | 25 | ||
| 28 | def new | 26 | def new |
