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

Remove default :blank error message

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

      Mongoid sets a default :blank error message in it's locale file. This is confusing when trying to override error messages within your own app as every overriden message will work except :blank

      I added an error message to config/locales/en.yml

      en:
      errors:
      messages:
      blank: 'please complete'

      This works for other all the other validation messages apart from :blank as Mongoid supplies it's own default.

      I think Mongoid should use the ActiveModel default. This will save confusion for others when overriding error messages.

      What do you think?

            Assignee:
            Unassigned Unassigned
            Reporter:
            jordelver jordelver
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: