summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-02-27 16:07:13 +0100
committerhukl <contact@smyck.org>2009-02-27 16:07:13 +0100
commit7aa907ca4190efd807a368f8ed7668abd536832d (patch)
tree2a8613ab968a66af5c106232d108afdf6841bb9e /app/models
parent5d55494f53156984e77886d93a1663853ac7fac4 (diff)
changed that comment to fit the current implementation
Diffstat (limited to 'app/models')
-rw-r--r--app/models/node.rb7
1 files changed, 4 insertions, 3 deletions
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
117 117
118 protected 118 protected
119 119
120 # Creates an empty page, associates it to the given node and sets its 120 # Creates an empty page and associates it to the given node. This means
121 # published_at date so it isn't considered a draft. Look up the draft 121 # freshly created node has an empty draft. A user can create nodes as he
122 # method! 122 # wants to which will not appear on the public page until the author edits
123 # that draft and publishes it.
123 def initialize_empty_page 124 def initialize_empty_page
124 if self.pages.empty? 125 if self.pages.empty?
125 self.pages.create! 126 self.pages.create!