define('dummy/controllers/add', ['exports', 'ember', 'ember-cli-simple-validation/mixins/validate'], function (exports, Ember, validate) {

    'use strict';

    exports['default'] = Ember['default'].Controller.extend(validate.ValidationMixin, {
        nameValidation: validate.validate("model.name"),
        zipcodeValidation: validate.validate("model.zipcode", /\d{5}/),
        emailValidation: validate.validate("model.email", /\S+@\S+\.\S+/),
        actions: {
            save: function () {
                this.set("submitted", true);
                if (this.get("valid")) {
                    this.transitionToRoute("success");
                }
            }
        }
    });

});