Matt-Yorkley
|
96138e9129
|
Refactor UserLocaleSetter public methods
|
2020-07-04 10:15:35 +02:00 |
|
Matt-Yorkley
|
f08a530877
|
Make #valid_locale_for_user an instance method
|
2020-07-04 09:51:00 +02:00 |
|
Matt-Yorkley
|
05c1f093b2
|
Delete dead code
There's nothing done in this bit of code that isn't already done somewhere else, and more effectively.
|
2020-07-03 16:44:37 +02:00 |
|
Matt-Yorkley
|
0c2fd4bfd2
|
Fix ensure_valid_locale_persisted and change public interface of service
|
2020-07-03 16:39:24 +02:00 |
|
Matt-Yorkley
|
ab63d2234c
|
Guard against nils in conditions
|
2020-07-03 14:22:32 +02:00 |
|
Matt-Yorkley
|
078726dcca
|
Add explanatory comment on saving selected locale in cookies
|
2020-07-03 14:21:45 +02:00 |
|
Matt-Yorkley
|
dab0add492
|
Make conditional more concise
|
2020-07-03 14:20:51 +02:00 |
|
Matt-Yorkley
|
ebffa381c6
|
Update cookies[:locale] logic
|
2020-07-03 14:06:05 +02:00 |
|
Matt-Yorkley
|
faa7c0a7c5
|
Extract save_cookies_from_locale comment-method
|
2020-07-03 14:03:52 +02:00 |
|
Matt-Yorkley
|
02549d1b0f
|
Extract all locale-setting logic to a service
|
2020-07-03 13:44:13 +02:00 |
|