add validation for payment method,print_setting,tax_profile

This commit is contained in:
phyusin
2017-10-27 13:28:25 +06:30
parent 0d2952c35f
commit 19b9b5c557
4 changed files with 7 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
class TaxProfile < ApplicationRecord
default_scope { order('order_by asc') }
# validations
validates_presence_of :name, :rate
end