From c2ea0e25158a7f46cdf9a293b9947d641a8ddc86 Mon Sep 17 00:00:00 2001 From: Yan Date: Mon, 9 Apr 2018 15:51:23 +0630 Subject: [PATCH] remove validate brand name and check jade mobile --- app/models/print_setting.rb | 2 +- app/views/origami/home/index.html.erb | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/models/print_setting.rb b/app/models/print_setting.rb index 0760b59f..9b883726 100755 --- a/app/models/print_setting.rb +++ b/app/models/print_setting.rb @@ -1,6 +1,6 @@ class PrintSetting < ApplicationRecord # validations - validates_presence_of :name, :unique_code, :printer_name, :brand_name, :api_settings, :page_width, :page_height, :print_copies, :header_font_size, :item_font_size + validates_presence_of :name, :unique_code, :printer_name, :api_settings, :page_width, :page_height, :print_copies, :header_font_size, :item_font_size def self.get_precision_delimiter PrintSetting.find_by_unique_code("ReceiptBillPdf") diff --git a/app/views/origami/home/index.html.erb b/app/views/origami/home/index.html.erb index 5e280697..8c67a36d 100755 --- a/app/views/origami/home/index.html.erb +++ b/app/views/origami/home/index.html.erb @@ -140,9 +140,7 @@