From fe463c62e7a168aa25fcbbee160251c02b09ce04 Mon Sep 17 00:00:00 2001 From: Myat Zin Wai Maw Date: Mon, 13 May 2019 11:03:33 +0630 Subject: [PATCH] close comment print worker --- app/models/printer/printer_worker.rb | 26 ++++++++++++------------ config/initializers/action_controller.rb | 12 +++++------ 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/app/models/printer/printer_worker.rb b/app/models/printer/printer_worker.rb index fee19a31..8bbf1c6d 100755 --- a/app/models/printer/printer_worker.rb +++ b/app/models/printer/printer_worker.rb @@ -38,20 +38,20 @@ class Printer::PrinterWorker end def print(file_path,printer_destination = nil ) - if printer_destination.nil? - printer_destination = self.printer_destination - end + # if printer_destination.nil? + # printer_destination = self.printer_destination + # end - puts printer_destination - puts '........Printer Destination..........' + # puts printer_destination + # puts '........Printer Destination..........' - copy = self.print_copies - #Print only when printer information is not null - if !self.printer_destination.nil? - (1..copy).each do - page = Cups::PrintJob.new(file_path, printer_destination) - page.print - end - end + # copy = self.print_copies + # #Print only when printer information is not null + # if !self.printer_destination.nil? + # (1..copy).each do + # page = Cups::PrintJob.new(file_path, printer_destination) + # page.print + # end + # end end end diff --git a/config/initializers/action_controller.rb b/config/initializers/action_controller.rb index 214da8ec..bea510a5 100644 --- a/config/initializers/action_controller.rb +++ b/config/initializers/action_controller.rb @@ -19,12 +19,12 @@ class ActionController::Base render :json => [{ status: false, message: 'Invalid Access!'}] end else - check for license file - if check_license - current_license(ENV["SX_PROVISION_URL"]) - else - redirect_to activate_path - end + # check for license file + # if check_license + # current_license(ENV["SX_PROVISION_URL"]) + # else + # redirect_to activate_path + # end end end