Controller spec api improvements
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ class Table
|
||||
|
||||
validates :supplier_id, presence: true
|
||||
#validates :list_id, presence: true
|
||||
validates :number, numericality: {greater_than: 0}
|
||||
validates :number, numericality: true #{greater_than: 0}
|
||||
view :by_supplier_id_and_id, key: [:supplier_id, :_id]
|
||||
view :by_supplier_id_and_number, key: [:supplier_id, :number]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user