]> cat aescling's git repositories - mastodon.git/commit
Improve default language decision and spec (#3351)
authorAkihiko Odaki (@fn_aki@pawoo.net) <akihiko.odaki.4i@stu.hosei.ac.jp>
Sat, 10 Jun 2017 07:44:02 +0000 (16:44 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 10 Jun 2017 07:44:02 +0000 (09:44 +0200)
commit4919b89ab83f8eee43b89ff4786eae46bf2fa30e
treef779dac8d3f736ecd6696dac249729aaef3918f7
parent2925372ff44347fa7066c380a5d51dd35f80682f
Improve default language decision and spec (#3351)

* Improve default language decision

This change allows to takes account of accepted language determined by
the user agent even if the custom default locale of the instance is
configured.

* Cover Localized more

* Fix code style
app/controllers/concerns/localized.rb
spec/controllers/concerns/localized_spec.rb [new file with mode: 0644]