Style fixes

This commit is contained in:
Robert Richter 2015-04-25 14:06:56 -05:00
parent 7de6a7a6da
commit bc41bc0e4b
2 changed files with 2 additions and 4 deletions

View File

@ -24,8 +24,8 @@ module Localized
# 1. a URL paramter called "locale"
# 2. the +HTTP_ACCEPT_LANGUAGE+ header property
def requested_locale
validate_locale locale_from_url_params ||
locale_from_accept_language_header
validate_locale locale_from_url_params ||
locale_from_accept_language_header
end
# Returns the given locale if localizations for it are available.

View File

@ -22,9 +22,7 @@ module PlanCharacters
# The default locale is :en and all translations
# from config/locales/*.rb,yml are auto loaded.
#
config.i18n.load_path +=
Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]