adds view placeholders for officing polls

This commit is contained in:
rgarcia
2016-09-16 13:06:30 +02:00
committed by kikito
parent 08fbe745a8
commit 503338e47b
34 changed files with 188 additions and 6 deletions

View File

@@ -0,0 +1,18 @@
class Officing::BaseController < ActionController::Base
layout 'admin'
#before_action :verify_officer
before_action :set_locale
private
def set_locale
if params[:locale] && I18n.available_locales.include?(params[:locale].to_sym)
session[:locale] = params[:locale]
end
session[:locale] ||= I18n.default_locale
I18n.locale = session[:locale]
end
end