emenu api integrated
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
class ApplicationController < ActionController::Base
|
||||
include LoginVerification
|
||||
#before_action :check_installation
|
||||
protect_from_forgery with: :exception
|
||||
|
||||
helper_method :current_company
|
||||
helper_method :current_company,:current_login_employee
|
||||
|
||||
#this is base api base controller to need to inherit.
|
||||
#all token authentication must be done here
|
||||
@@ -16,6 +17,10 @@ class ApplicationController < ActionController::Base
|
||||
|
||||
end
|
||||
|
||||
def current_login_employee
|
||||
@employee = Employee.find_by_token_session(session[:session_token])
|
||||
end
|
||||
|
||||
private
|
||||
def check_installation
|
||||
if current_company.nil?
|
||||
|
||||
Reference in New Issue
Block a user