Sha256: 3edcdddb3ae6c515f91df9f941e897b6afbe7e48ca1e5e09ec06e98ee7c091ef

Contents?: true

Size: 237 Bytes

Versions: 2

Compression:

Stored size: 237 Bytes

Contents

class ApplicationController < ActionController::Base
  protect_from_forgery

  before_filter :set_locale
  def set_locale
    # if params[:locale] is nil then I18n.default_locale will be used
    I18n.locale = params[:locale]
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
netzke-core-0.6.7 test/rails_app/app/controllers/application_controller.rb
netzke-core-0.6.6 test/rails_app/app/controllers/application_controller.rb