From c7757522c2750675fab6c4324453e237b863d84c Mon Sep 17 00:00:00 2001 From: hukl Date: Sun, 1 Mar 2009 13:56:24 +0100 Subject: 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. --- app/controllers/nodes_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/controllers/nodes_controller.rb') 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 def index @nodes = Node.root.descendants.paginate( - :include => :head, + :include => :head, + :include => :draft, :page => params[:page], :per_page => 25, :order => 'id DESC' -- cgit v1.3