summaryrefslogtreecommitdiff
path: root/app/models/node.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/node.rb')
-rw-r--r--app/models/node.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/node.rb b/app/models/node.rb
index 1d0a089..0361c1e 100644
--- a/app/models/node.rb
+++ b/app/models/node.rb
@@ -328,6 +328,10 @@ class Node < ApplicationRecord
328 unique_path.length == 3 && unique_path[0] == "updates" 328 unique_path.length == 3 && unique_path[0] == "updates"
329 end 329 end
330 330
331 def editable_page
332 autosave || draft || head
333 end
334
331 # Returns immutable node id for all new nodes so that the atom feed entry ids 335 # Returns immutable node id for all new nodes so that the atom feed entry ids
332 # stay the same eventhough the slug or positions changes. 336 # stay the same eventhough the slug or positions changes.
333 # Can be removed after a year or so ;) 337 # Can be removed after a year or so ;)