{:uriI"file:///Users/himn1/dev/rails/engines/loco/lib/assets/javascripts/loco/validators/presence.coffee?type=application/javascript&pipeline=self&id=3ace4ae7a51e047272cca9f87b2dacdff0c3d96a38fc1952bfa4c8f0e9c24f30: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/presence.coffee;T: nameI"loco/validators/presence;T:logical_pathI"%loco/validators/presence.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.Presence = (function(superClass) { extend(Presence, superClass); function Presence() { Presence.__super__.constructor.apply(this, arguments); } Presence.prototype.validate = function() { if ((this.val != null) && this.val.length > 0) { return true; } this._addErrorMessage(); return false; }; Presence.prototype._addErrorMessage = function() { var message; message = "can't be blank"; return this.obj.addErrorMessage(message, { "for": this.attr }); }; return Presence; })(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"mfile-digest:///Users/himn1/dev/rails/engines/loco/lib/assets/javascripts/loco/validators/presence.coffee;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%8C#)Fi$ >@[& _\: lengthi:dependencies_digest"%$p#SYj/