docbrown/config/locales
Joshua Wehner a20cf3e02b
Unique cross-model-slug check is likely misconfigured (#19263)
* Page unique_cross_model_slug seems misconfigured

* Update validator test

* More verbose invalid attribute message

* Try dynamic model/attribute registration

* Rubocop

* Use the cross-model-slug existence check

* Register with the dynamic cross-model-slug checker

* Cleanup

* Add missing keys to fr

* Update format regex

* Adjust validation: always presence, unique if changed

* Tests can create reserved-word pages when they need to

* Slugs can be mixed case?

* Case-sensitive is better, actually

* Refactor to use CrossModel check

* Refactor, rename for clarity

* Refactor, avoid mocking oneself

* Refactor, injectable everything

* Add reservedword check to extracted exists? checker

* Move to concerns

* Without dynamic registration

* extend when needed

* Cleanup comments, remove registration references

---------

Co-authored-by: Goran <gorang.pub@gmail.com>
2023-04-07 17:04:45 +02:00
..
concerns I18n: populate config/locales with French (#17487) 2023-03-23 10:06:38 -04:00
controllers I18n: populate config/locales with French (#17487) 2023-03-23 10:06:38 -04:00
decorators I18n: populate config/locales with French (#17487) 2023-03-23 10:06:38 -04:00
helpers I18n: populate config/locales with French (#17487) 2023-03-23 10:06:38 -04:00
lib Opt in settings for Ahoy Tracking (#18575) 2022-10-17 10:11:27 -06:00
liquid_tags I18n: populate config/locales with French (#17487) 2023-03-23 10:06:38 -04:00
mailers I18n: populate config/locales with French (#17487) 2023-03-23 10:06:38 -04:00
misc I18n: populate config/locales with French (#17487) 2023-03-23 10:06:38 -04:00
models I18n: populate config/locales with French (#17487) 2023-03-23 10:06:38 -04:00
services I18n: populate config/locales with French (#17487) 2023-03-23 10:06:38 -04:00
utils I18n: populate config/locales with French (#17487) 2023-03-23 10:06:38 -04:00
validators Unique cross-model-slug check is likely misconfigured (#19263) 2023-04-07 17:04:45 +02:00
views I18n: populate config/locales with French (#17487) 2023-03-23 10:06:38 -04:00
devise.en.yml Rubocop fixes (#18461) 2022-09-16 15:25:48 +03:00
devise_invitable.en.yml Remove name from invitation flow (#17438) 2022-05-03 09:33:12 +01:00
devise_invitable.fr.yml Remove name from invitation flow (#17438) 2022-05-03 09:33:12 +01:00
en.yml report abuse dropdown link (#19247) 2023-03-28 14:02:31 -05:00
fr.yml report abuse dropdown link (#19247) 2023-03-28 14:02:31 -05:00
kaminari.en.yml Admin member index: Update pagination layout & styles (#16995) 2022-03-25 07:50:50 +00:00
kaminari.fr.yml I18n: populate config/locales with French (#17487) 2023-03-23 10:06:38 -04:00