app/controllers/locales_controller.rb in i18n_helper-0.0.2 vs app/controllers/locales_controller.rb in i18n_helper-0.0.3
- old
+ new
@@ -1,6 +1,8 @@
class LocalesController < ApplicationController
+ skip_before_action :verify_authenticity_token
+
def setting
if params[:locale] and I18n.available_locales.include?(params[:locale].to_sym)
session[:locale] = params[:locale]
I18n.locale = params[:locale]
if self.respond_to? :current_user