Sha256: 7f096709d195e6a270430380659bafeb1a12f7840d081afe302b8f1479f7d4be

Contents?: true

Size: 376 Bytes

Versions: 17

Compression:

Stored size: 376 Bytes

Contents

# frozen_string_literal: true

class ApplicationController < ActionController::Base
  if respond_to?(:before_filter) && !respond_to?(:before_action)
    class << self
      alias :before_action :before_filter
    end
  end

  protect_from_forgery
  before_action :pull_out_locale


  def pull_out_locale
    I18n.locale = params[:locale] if params[:locale].present?
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
derailed_benchmarks-2.2.1 test/rails_app/app/controllers/application_controller.rb
derailed_benchmarks-2.2.0 test/rails_app/app/controllers/application_controller.rb
derailed_benchmarks-2.1.2 test/rails_app/app/controllers/application_controller.rb
derailed_benchmarks-2.1.1 test/rails_app/app/controllers/application_controller.rb
derailed_benchmarks-2.1.0 test/rails_app/app/controllers/application_controller.rb
derailed_benchmarks-2.0.1 test/rails_app/app/controllers/application_controller.rb
derailed_benchmarks-2.0.0 test/rails_app/app/controllers/application_controller.rb
derailed_benchmarks-1.8.1 test/rails_app/app/controllers/application_controller.rb
derailed_benchmarks-1.8.0 test/rails_app/app/controllers/application_controller.rb
derailed_benchmarks-1.7.0 test/rails_app/app/controllers/application_controller.rb
gitlab-derailed_benchmarks-1.6.1 test/rails_app/app/controllers/application_controller.rb
derailed_benchmarks-1.6.0 test/rails_app/app/controllers/application_controller.rb
derailed_benchmarks-1.5.0 test/rails_app/app/controllers/application_controller.rb
derailed_benchmarks-1.4.3 test/rails_app/app/controllers/application_controller.rb
derailed_benchmarks-1.4.2 test/rails_app/app/controllers/application_controller.rb
derailed_benchmarks-1.4.1 test/rails_app/app/controllers/application_controller.rb
derailed_benchmarks-1.4.0 test/rails_app/app/controllers/application_controller.rb