Sha256: 71ab6b140aabafca1a259a54a3f22d8ff3e03c3cf20122eae65fce4b9eb5ef37
Contents?: true
Size: 455 Bytes
Versions: 2
Compression:
Stored size: 455 Bytes
Contents
class ApplicationController < ActionController::Base layout "main" before_filter :activate_whowish_word, :set_locale def activate_whowish_word if params[:edit_mode] == "yes" whowish_word.activate_edit_mode end end def set_locale if params[:locale] session[:locale] = params[:locale] end session[:locale] ||= "en" whowish_word.set_locale(session[:locale]) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
whowish_word-0.3.1 | rails/app/controllers/application_controller.rb |
whowish_word-0.3.0 | rails/app/controllers/application_controller.rb |