shop_detail func: update in base

This commit is contained in:
phyusin
2019-01-07 16:05:18 +06:30
parent cca350b264
commit ccd9855281
15 changed files with 20 additions and 94 deletions

View File

@@ -2,8 +2,6 @@ class PrintSettingsController < ApplicationController
load_and_authorize_resource except: [:create]
before_action :set_print_setting, only: [:show, :edit, :update, :destroy]
helper_method :shop_detail
# GET /print_settings
# GET /print_settings.json
def index
@@ -85,9 +83,4 @@ class PrintSettingsController < ApplicationController
def print_setting_params
params.require(:print_setting).permit(:name, :unique_code, :template, :printer_name, :font,:header_font_size, :item_font_size, :api_settings, :page_width, :page_height, :print_copies,:precision,:delimiter,:heading_space)
end
#Shop Name in Navbor
def shop_detail
@shop = Shop.first
end
end