Mongoid-specific validations only exist on the model class, not the instance

XMLWordPrintableJSON

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

      ActiveModel allows me to declare, say,

      @person.validates_format_of :email, with: /../

      Mongoids special validations validates_uniqueness_of and validates_associated only exist as class methods, not instance methods.

              Assignee:
              Durran Jordan
              Reporter:
              schnittchen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: