Skip to content

Allow error message to be customized declaratively #13

@rkenshin

Description

@rkenshin

Apart from explicitly overriding the message with the right key, i didn't see anywhere in the source code to declaratively add custom error message

Ember.ValidationError.addMessage('blank', "can't be blank");

vs

foo {
presence: true
message: "This is a required field"
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions