{:uriI"file:///Users/himn1/dev/rails/engines/loco/lib/assets/javascripts/loco/validators/confirmation.coffee?type=application/javascript&pipeline=self&id=b45c1795967572f23aac69b23f85e74be6572b1d3f47681ed8b7e47a0d0871dc:ET:load_pathI"?/Users/himn1/dev/rails/engines/loco/lib/assets/javascripts;T: filenameI"c/Users/himn1/dev/rails/engines/loco/lib/assets/javascripts/loco/validators/confirmation.coffee;T: nameI"!loco/validators/confirmation;T:logical_pathI")loco/validators/confirmation.self.js;T:content_typeI"application/javascript;T: sourceI"Y(function() { var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; App.Validators.Confirmation = (function(superClass) { extend(Confirmation, superClass); function Confirmation() { Confirmation.__super__.constructor.apply(this, arguments); } Confirmation.prototype.validate = function() { var properVal; properVal = this.obj[this._properAttr()]; if ((this.val != null) && (properVal != null) && this.val === properVal) { return; } return this._addErrorMessage(); }; Confirmation.prototype._addErrorMessage = function() { var attrName, attrNames, defaultAttrName, message; defaultAttrName = this.attr.charAt(0).toUpperCase() + this.attr.slice(1); attrNames = App.I18n[App.Env.loco.getLocale()].attributes[this.obj.getIdentity()]; attrName = (attrNames && attrNames[this.attr]) || defaultAttrName; message = this.opts.message != null ? this.opts.message : App.I18n[App.Env.loco.getLocale()].errors.messages.confirmation; message = message.replace('%{attribute}', attrName); return this.obj.addErrorMessage(message, { "for": this._properAttr() }); }; Confirmation.prototype._properAttr = function() { return this.attr + "Confirmation"; }; return Confirmation; })(App.Validators.Base); }).call(this); ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"qfile-digest:///Users/himn1/dev/rails/engines/loco/lib/assets/javascripts/loco/validators/confirmation.coffee;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%!q~oR_Z25cvUWۇu5M: lengthiY:dependencies_digest"%Wz\F`ɋƏ~DHp:idI"Eb45c1795967572f23aac69b23f85e74be6572b1d3f47681ed8b7e47a0d0871dc;F: mtimel+W