check print copy greater than 0 in print_settings

This commit is contained in:
phyusin
2017-11-27 19:33:18 +06:30
7 changed files with 67 additions and 29 deletions

View File

@@ -1,4 +1,4 @@
class PrintSetting < ApplicationRecord
# validations
validates_presence_of :name, :unique_code, :printer_name, :page_width, :page_height
validates_presence_of :name, :unique_code, :printer_name, :page_width, :page_height, :print_copies
end