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.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/node.rb b/app/models/node.rb
index 057248e..fa9d519 100644
--- a/app/models/node.rb
+++ b/app/models/node.rb
@@ -16,7 +16,8 @@ class Node < ActiveRecord::Base
16 after_save :update_unique_names_of_children 16 after_save :update_unique_names_of_children
17 17
18 # Validations 18 # Validations
19 # validates_length_of :slug, :within => 3..40 19 validates_length_of :slug, :within => 1..255
20 validates_presence_of :slug
20 validates_uniqueness_of :slug, :scope => :parent_id 21 validates_uniqueness_of :slug, :scope => :parent_id
21 22
22 # Index for Fulltext Search 23 # Index for Fulltext Search