{:uriI"Îfile:///Users/himn1/dev/rails/engines/loco/lib/assets/javascripts/loco/validators/absence.coffee?type=application/javascript&pipeline=self&id=888d546a972ca69b47360e9eaa719e24f705db28395da1855ea8064bbcac0e84:ET:load_pathI"?/Users/himn1/dev/rails/engines/loco/lib/assets/javascripts;T: filenameI"^/Users/himn1/dev/rails/engines/loco/lib/assets/javascripts/loco/validators/absence.coffee;T: nameI"loco/validators/absence;T:logical_pathI"$loco/validators/absence.self.js;T:content_typeI"application/javascript;T: sourceI"Á(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.Absence = (function(superClass) { extend(Absence, superClass); function Absence() { Absence.__super__.constructor.apply(this, arguments); } Absence.prototype.validate = function() { switch (typeof this.val) { case 'string': if ((this.val != null) && this.val.length === 0) { return; } break; default: if (this.val == null) { return; } } return this._addErrorMessage(); }; Absence.prototype._addErrorMessage = function() { var message; message = this.opts.message != null ? this.opts.message : App.I18n[App.Env.loco.getLocale()].errors.messages.present; return this.obj.addErrorMessage(message, { "for": this.attr }); }; return Absence; })(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"lfile-digest:///Users/himn1/dev/rails/engines/loco/lib/assets/javascripts/loco/validators/absence.coffee;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%‡¾+Ž@ÍG‰"‡âR»ßUØ$'à·ôú@+ÍDÓˆ: lengthiÁ:dependencies_digest"%êðÏ8C.¯ÿ@L}$º‹ªžEb¦ÙFª¨Ã¡yP‡±:idI"E888d546a972ca69b47360e9eaa719e24f705db28395da1855ea8064bbcac0e84;F: mtimel+™óW