update admin bsb for layout

This commit is contained in:
Aung Myo
2017-10-23 09:38:11 +06:30
parent ed6d3d8757
commit ccab11acb2
38 changed files with 310 additions and 700 deletions

View File

@@ -10,6 +10,16 @@ class BaseOqsController < 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