Merge branch 'r-1902001-01-dev' of gitlab.com:code2lab/SXRestaurant into r-1902001-01-dev
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
class Api::ApiController < ActionController::API
|
||||
|
||||
include MultiTenancy
|
||||
include TokenVerification
|
||||
include ActionController::MimeResponds
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
class BaseController < ActionController::Base
|
||||
include MultiTenancy
|
||||
|
||||
layout "installation"
|
||||
|
||||
protect_from_forgery with: :exception
|
||||
|
||||
end
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class BaseCrmController < ActionController::Base
|
||||
|
||||
include MultiTenancy
|
||||
include LoginVerification
|
||||
|
||||
layout "CRM"
|
||||
|
||||
before_action :check_user
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class BaseInventoryController < ActionController::Base
|
||||
|
||||
include MultiTenancy
|
||||
include LoginVerification
|
||||
|
||||
layout "inventory"
|
||||
|
||||
before_action :check_user
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
class BaseOqsController < ActionController::Base
|
||||
|
||||
include MultiTenancy
|
||||
include LoginVerification
|
||||
|
||||
|
||||
layout "OQS"
|
||||
|
||||
before_action :check_user
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class BaseOrigamiController < ActionController::Base
|
||||
|
||||
include MultiTenancy
|
||||
include LoginVerification
|
||||
|
||||
layout "origami"
|
||||
|
||||
before_action :check_user
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class BaseReportController < ActionController::Base
|
||||
|
||||
include MultiTenancy
|
||||
include LoginVerification
|
||||
|
||||
layout "application"
|
||||
|
||||
before_action :check_user
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class BaseWaiterController < ActionController::Base
|
||||
|
||||
include MultiTenancy
|
||||
include LoginVerification
|
||||
|
||||
layout "waiter"
|
||||
|
||||
before_action :check_user
|
||||
|
||||
@@ -4,6 +4,7 @@ module MultiTenancy
|
||||
included do
|
||||
set_current_tenant_through_filter if respond_to? :set_current_tenant_through_filter
|
||||
before_action :find_shop_by_subdomain_or_frist if respond_to? :before_action
|
||||
helper_method :current_shop if respond_to? :helper_method
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
@@ -4,6 +4,7 @@ class Origami::HomeController < BaseOrigamiController
|
||||
|
||||
def index
|
||||
@webview = check_mobile
|
||||
|
||||
@tables = Table.unscope(:order).includes(:zone).all.active.order('status desc')
|
||||
@rooms = Room.unscope(:order).includes(:zone).all.active.order('status desc')
|
||||
@complete = Sale.completed_sale("cashier")
|
||||
|
||||
Reference in New Issue
Block a user