Base progress

This commit is contained in:
2015-09-16 11:50:55 +02:00
parent ef894f9e02
commit 6a085b1ca2
52 changed files with 3686 additions and 1818 deletions
+3
View File
@@ -8,6 +8,9 @@ class EmployeeShift
belongs_to :supplier
belongs_to :employee
validates :start_from, presence: true
validates :end_on, presence: true
view :for_supplier_view, type: :custom, map_function: %|function(doc){
if(doc.ruby_class == 'EmployeeShift' && doc.start_from && doc.end_on){
emit([doc.supplier_id, doc.end_on], 1)