22 lines
464 B
JavaScript
22 lines
464 B
JavaScript
// Generated by CoffeeScript 2.7.0
|
|
var validations;
|
|
|
|
import {
|
|
validatePresence
|
|
} from 'ember-changeset-validations/validators';
|
|
|
|
import buildMessage from 'ember-changeset-validations/utils/validation-errors';
|
|
|
|
validations = {
|
|
client_identifier: validatePresence({
|
|
presence: true,
|
|
message: function(key, type) {
|
|
return buildMessage(t(`attributes.project_instance.${key}`), {
|
|
type: type
|
|
});
|
|
}
|
|
})
|
|
};
|
|
|
|
export default validations;
|