make design work with layout and testing with package andreas05 within r tag
This commit is contained in:
1 parent
b6db304579
commit
c8d58e30aa
4 files changed
+9
-4
No files matched your search
@@ -6,9 +6,11 @@ class Layout
|
||||
field :name, :index => true
|
||||
field :description
|
||||
field :content
|
||||
field :parent_id
|
||||
|
||||
references_many :children, :class_name => "Item"
|
||||
has_many :layout_parts
|
||||
belongs_to :design,:class_name=>"Design"
|
||||
|
||||
validates_presence_of :name
|
||||
validates_format_of :name, :with => /^[0-9a-zA-Z\-_]+$/
|
||||
|
||||
Reference in new issue
Block a user