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

Use a translated message for when an association fails validation during deletion due to dependent documents existing

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 7.2.0.rc1
    • Affects Version/s: None
    • Component/s: None
    • None

      The validation error message for :restrict_with_error dependency option appears to be hardcoded in Mongoid source and is not translatable, unlike most of the error messages in Mongoid.

      Contributed PR: https://github.com/mongodb/mongoid/pull/4723

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: