{:uriI"¡file://app/assets/javascripts/models/article.coffee?type=application/javascript&pipeline=self&id=7603d68587e60f8b6683077867ea397471542318685add411c314ccdeee5cb97:ET:load_pathI"app/assets/javascripts;T: filenameI"1app/assets/javascripts/models/article.coffee;T: nameI"models/article;T:logical_pathI"models/article.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.Models.Article = (function(superClass) { extend(Article, superClass); Article.identity = "Article"; Article.resources = { url: '/user/articles', paginate: { per: 5 }, main: { url: '/articles', paginate: { per: 3 } } }; Article.attributes = { title: { validations: { presence: true, length: { minimum: 3, maximum: 255 } } }, content: { validations: { presence: true, length: { min: 100 } }, remoteName: "text" }, createdAt: { type: "Date", remoteName: "created_at" }, updatedAt: { type: "Date", remoteName: "updated_at" }, commentsCount: { type: "Int", remoteName: "comments_count" }, publishedAt: { type: "Date", remoteName: "published_at" } }; Article.receivedSignal = function(signal, data) {}; Article.validate = ["vulgarityLevel"]; function Article(data) { Article.__super__.constructor.call(this, data); } Article.prototype.receivedSignal = function(signal, data) {}; Article.prototype.vulgarityLevel = function() { if (((this.title != null) && /fuck/i.exec(this.title)) || ((this.content != null) && /fuck/i.exec(this.content))) { return this.addErrorMessage("Article contains strong language.", { "for": 'base' }); } }; return Article; })(App.Models.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"?file-digest://app/assets/javascripts/models/article.coffee;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%®&÷ .ÈÝE~ ‡!x‚°ªm¹ ùå ^Á‚y: lengthi¼:dependencies_digest"%&«"¥Lª.* öåzxêþ×›#w„+ž¿¤'Ê-P³½:idI"E7603d68587e60f8b6683077867ea397471542318685add411c314ccdeee5cb97;F: mtimel+wšV