RubyGems Navigation menu

mobility_uniqueness 0.1.3

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.

Gemfile:
=

インストール:
=

バージョン履歴:

  1. 0.1.3 December 01, 2024 (7KB)
  2. 0.1.2 November 17, 2024 (7KB)
  3. 0.1.1 November 17, 2024 (7KB)
  4. 0.1.0 November 09, 2024 (7KB)

Development依存関係 (4):

activerecord ~> 7.2, >= 7.2.2
mobility >= 0
rspec >= 0
sqlite3 >= 0

所有者:

プッシュ者:

作者:

  • egemen öztürk

SHA 256チェックサム:

=

累計ダウンロード数 619

このバージョンのみ 155

このバージョンがリリースされたのは:

ライセンス:

MIT

必要なRubyのバージョン: >= 3.0.0

リンク: