Sign in Sign up
rubygems

mobility_uniqueness

MobilityUniqueness extends the Mobility gem with locale-specific uniqueness validation for translated attributes in ActiveRecord models. It allows you to ensure that a given attribute, such as `name` in different locales, is unique within the specified locale. By using this validator, you can enforce uniqueness for translations without needing to write complex custom validation code in your Rails models. The gem works seamlessly with Mobility’s `KeyValue` backend to query translations and check for duplicates.

Activity

Latest release
1y ago
Total releases
4
Cadence
~8 days
Last 12 months
0

Details

License
MIT
First release
Nov 09, 2024
Releases
Version Released
0.1.3 patch
0.1.2 patch
0.1.1 patch
0.1.0 initial