Sha256: ad9fdc9755c082695a94c88ddddb8c88dd4482fe8f7eefde8ffbc9088f3a0eb3

Contents?: true

Size: 236 Bytes

Versions: 17

Compression:

Stored size: 236 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

17 entries across 17 versions & 2 rubygems

Version Path
netzke-basepack-0.8.4 test/basepack_test_app/app/controllers/application_controller.rb
netzke-basepack-0.8.3 test/basepack_test_app/app/controllers/application_controller.rb
netzke-basepack-0.8.2 test/basepack_test_app/app/controllers/application_controller.rb
netzke-basepack-0.8.1 test/basepack_test_app/app/controllers/application_controller.rb
netzke-basepack-0.8.0 test/basepack_test_app/app/controllers/application_controller.rb
netzke-basepack-0.7.7 test/basepack_test_app/app/controllers/application_controller.rb
netzke-basepack-zh-0.7.6 test/basepack_test_app/app/controllers/application_controller.rb
netzke-basepack-0.7.6 test/basepack_test_app/app/controllers/application_controller.rb
netzke-basepack-0.7.5 test/basepack_test_app/app/controllers/application_controller.rb
netzke-basepack-0.7.4 test/basepack_test_app/app/controllers/application_controller.rb
netzke-basepack-0.7.3 test/basepack_test_app/app/controllers/application_controller.rb
netzke-basepack-0.7.2 test/basepack_test_app/app/controllers/application_controller.rb
netzke-basepack-0.7.1 test/basepack_test_app/app/controllers/application_controller.rb
netzke-basepack-0.6.5 test/rails_app/app/controllers/application_controller.rb
netzke-basepack-0.7.0 test/rails_app/app/controllers/application_controller.rb
netzke-basepack-0.6.4 test/rails_app/app/controllers/application_controller.rb
netzke-basepack-0.6.3 test/rails_app/app/controllers/application_controller.rb