Sha256: 0f9802924fcb8791a1c3b78bb6b46f62312a018a323c90d2a6b8aec190006042

Contents?: true

Size: 345 Bytes

Versions: 4

Compression:

Stored size: 345 Bytes

Contents

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

4 entries across 4 versions & 1 rubygems

Version Path
derailed_benchmarks-1.3.6 test/rails_app/app/controllers/application_controller.rb
derailed_benchmarks-1.3.5 test/rails_app/app/controllers/application_controller.rb
derailed_benchmarks-1.3.4 test/rails_app/app/controllers/application_controller.rb
derailed_benchmarks-1.3.3 test/rails_app/app/controllers/application_controller.rb