summaryrefslogtreecommitdiff
path: root/app/models/node.rb
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-02-22 12:52:58 +0100
committerhukl <contact@smyck.org>2009-02-22 12:52:58 +0100
commitc39eb1e9839664deb68b50b2a9db16770d42852c (patch)
treee1c6b0ceb1309074e6018ac1a61adb218552154b /app/models/node.rb
parente0d5557a9e7f88050da2ccb42e02397952cded0d (diff)
another round of view updates
Diffstat (limited to 'app/models/node.rb')
-rw-r--r--app/models/node.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/node.rb b/app/models/node.rb
index 170ca1c..a6e3867 100644
--- a/app/models/node.rb
+++ b/app/models/node.rb
@@ -10,6 +10,9 @@ class Node < ActiveRecord::Base
10 # Callbacks 10 # Callbacks
11 after_create :initialize_empty_page 11 after_create :initialize_empty_page
12 12
13 # Validations
14 validates_length_of :slug, :within => 3..40
15
13 # Class methods 16 # Class methods
14 17
15 # Returns a page for a given node. If no revision is supplied, it returns 18 # Returns a page for a given node. If no revision is supplied, it returns