From c2f561f2ea84b54058a3fcab7cc5d1e2e7b93bd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lecour?= Date: Wed, 13 Jun 2018 22:11:04 +0200 Subject: [PATCH] Improve code style, based on Rubocop recommendations --- app/controllers/application_controller.rb | 1 + app/helpers/application_helper.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index d39d6c0..5127212 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -4,6 +4,7 @@ class ApplicationController < ActionController::Base before_action :configure_devise_parameters, if: :devise_controller? before_action :set_locale + protected def configure_devise_parameters diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index f40a4ac..53fa2d6 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -4,6 +4,6 @@ module ApplicationHelper end def available_locales_collection - I18n.available_locales.map { |k| [t("shared.locales.#{k}"), k]} + I18n.available_locales.map { |k| [t("shared.locales.#{k}"), k] } end end