From c62637af100c0ce2ad33432cfda35ed3aa6697d8 Mon Sep 17 00:00:00 2001 From: San Wai Lwin Date: Thu, 15 Mar 2018 14:08:30 +0630 Subject: [PATCH] Remove / from _header --- app/views/layouts/_header.html.erb | 2 +- config/initializers/action_controller.rb | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index 23a4aba2..e42f33ec 100755 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -29,7 +29,7 @@ SX Restaurant - /   + diff --git a/config/initializers/action_controller.rb b/config/initializers/action_controller.rb index 02e35bb8..2bcdd944 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