GSA / GSA/activerecord-validate_unique_child_attribute
How to use with multiple fields
Open
- Dominant language
- Ruby
- Stars
- 1
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
I would like to be able to do this:
` validates_uniqueness_of_child_attribute :children, %i[field1 field2 field3]`
Now, it seems this is not possible since https://github.com/GSA/activerecord-validate_unique_child_attribute/blob/master/lib/active_record/validate_unique_child_attribute.rb#L28 only maps just one attribute.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.