continuing the refactor of the admin section
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user