update admin bsb crm layou

This commit is contained in:
Aung Myo
2017-10-20 18:50:30 +06:30
parent 66df689f4e
commit 80f1170d8a
15 changed files with 379 additions and 197 deletions

View File

@@ -10,6 +10,16 @@ class BaseCrmController < ActionController::Base
redirect_to root_path
end
#change locallization
def set_locale
I18n.locale = params[:locale] || I18n.default_locale
end
# RESTful url for localize
def default_url_options
{ locale: I18n.locale }
end
def current_user
@current_user ||= Employee.find_by_token_session(session[:session_token]) if session[:session_token]
end