fix for fronted routing failed

This commit is contained in:
Matt K. Fu committed 2013-04-23 10:01:02 +08:00
1 parent 7e9fce0c2d
commit 41168f4c99
3 files changed
+8 -3

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ class Item
validates_format_of :name, :with => /^[0-9a-zA-Z\-_]+$/
# validates :name, :exclusion => { :in => LIST[:forbidden_item_names] }
validates_uniqueness_of :name, :scope => :parent_id
validates_uniqueness_of :name #, :scope => :parent_id
validates_presence_of :name
validates_associated :parent, :children