continuing the refactor of the admin section

This commit is contained in:
2012-12-05 01:14:13 +01:00
parent d8eef4a047
commit fe7c061d37
47 changed files with 752 additions and 123 deletions
+1 -1
View File
@@ -2,7 +2,6 @@ class Section
include SimplyStored::Couch
property :title
property :path, type: Array, default: []
belongs_to :supplier
@@ -12,6 +11,7 @@ class Section
attr_protected :supplier_id
validates :title, presence: true
validates :supplier_id, presence: true
# Probably faster to directly retreive the document and return nil