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