Sha256: 16ee8602c19e84262f666b9b838b86cdcdb823e65e70e568e43e0a10cedf3a32
Contents?: true
Size: 512 Bytes
Versions: 14
Compression:
Stored size: 512 Bytes
Contents
class ApplicationController < ActionController::Base layout "main" before_filter :activate_whowish_word, :set_locale def activate_whowish_word if params[:edit_mode] session[:edit_mode] = params[:edit_mode] end if session[:edit_mode] == "yes" whowish_word.activate_edit_mode end end def set_locale if params[:locale] session[:locale] = params[:locale] end session[:locale] ||= "en" I18n.locale = session[:locale].to_sym end end
Version data entries
14 entries across 14 versions & 1 rubygems