summaryrefslogtreecommitdiff
path: root/app/controllers/nodes_controller.rb
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-03-01 13:56:24 +0100
committerhukl <contact@smyck.org>2009-03-01 13:56:24 +0100
commitc7757522c2750675fab6c4324453e237b863d84c (patch)
tree3cc50a7f8e5c5ab9dbad1957863422a772dddf14 /app/controllers/nodes_controller.rb
parent62db596a0807059afe321930c2015b30f8b0e6d9 (diff)
refactored drafts which are now identified by a draft_id on the node rather than by guessing it. i was really that close to make that mistake again.
Diffstat (limited to 'app/controllers/nodes_controller.rb')
-rw-r--r--app/controllers/nodes_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb
index 9ba91f6..a403b95 100644
--- a/app/controllers/nodes_controller.rb
+++ b/app/controllers/nodes_controller.rb
@@ -12,7 +12,8 @@ class NodesController < ApplicationController
12 12
13 def index 13 def index
14 @nodes = Node.root.descendants.paginate( 14 @nodes = Node.root.descendants.paginate(
15 :include => :head, 15 :include => :head,
16 :include => :draft,
16 :page => params[:page], 17 :page => params[:page],
17 :per_page => 25, 18 :per_page => 25,
18 :order => 'id DESC' 19 :order => 'id DESC'