From 7aa907ca4190efd807a368f8ed7668abd536832d Mon Sep 17 00:00:00 2001 From: hukl Date: Fri, 27 Feb 2009 16:07:13 +0100 Subject: changed that comment to fit the current implementation --- app/models/node.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'app/models/node.rb') diff --git a/app/models/node.rb b/app/models/node.rb index 44f352a..33c82c9 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -117,9 +117,10 @@ class Node < ActiveRecord::Base protected - # Creates an empty page, associates it to the given node and sets its - # published_at date so it isn't considered a draft. Look up the draft - # method! + # Creates an empty page and associates it to the given node. This means + # freshly created node has an empty draft. A user can create nodes as he + # wants to which will not appear on the public page until the author edits + # that draft and publishes it. def initialize_empty_page if self.pages.empty? self.pages.create! -- cgit v1.3