work off today

This commit is contained in:
2020-02-25 11:09:27 -05:00
parent da2ba6230d
commit 8740300b9a
34 changed files with 657 additions and 662 deletions
+2 -2
View File
@@ -8,8 +8,8 @@ class NewSupplier
attribute :password
attribute :password_confirmation
without_current_employee = { unless: 'current_employee.present?' }
without_employee = { unless: 'employee.present?' }
without_current_employee = { unless: -> { current_employee.present? } }
without_employee = { unless: -> { employee.present? } }
validates :supplier_name, presence: true
validates :email, email: without_current_employee
validates :password, presence: without_current_employee, confirmation: without_employee