mirror of
https://github.com/Evolix/chexpire.git
synced 2024-06-08 02:24:30 +02:00
Improve code style, based on Rubocop recommendations
This commit is contained in:
parent
6dafa92866
commit
84fe348f17
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue