rails/rails — pull request #13190 by senny (2013-12-05 11:51:03+00:00)
Title: set `i18n.enforce_available_locales` before `i18n.default_locale`.

Related to #

There is order dependence between `enforce_available_locales` and `default_locale`. `enforce_available_locales` must be set beforehand to make sure it's up to date when the `default_locale` is set.