Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-1498

Fix for custom message not being used with uniqueness validator.

    • Type: Icon: Task Task
    • Resolution: Done
    • 2.4.0
    • Affects Version/s: None
    • Component/s: None
    • None

      The uniqueness validator fails to pass options when adding errors to the document. I merely mimicked what the ActiveRecord uniqueness validator passes when adding errors so that the message and value options get passed. I also added a unit test to verify the behavior.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jetheredge Justin Etheredge
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: