Sha256: fe2ef05ed4975205473cb73d0e4c4d418172fe1e51a7ce4e79659dae9526e47b
Contents?: true
Size: 1.28 KB
Versions: 10
Compression:
Stored size: 1.28 KB
Contents
(function() { var ConversationCollection, Conversations, 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; Rev.appModel('Conversation', Conversations = (function(superClass) { extend(Conversations, superClass); function Conversations() { return Conversations.__super__.constructor.apply(this, arguments); } Conversations.prototype.url = function() { if (this.id != null) { return "/conversations/" + this.id; } else { return "/conversations"; } }; return Conversations; })(Rev.Model)); Rev.appObject('Collections.Conversations', ConversationCollection = (function(superClass) { extend(ConversationCollection, superClass); function ConversationCollection() { return ConversationCollection.__super__.constructor.apply(this, arguments); } ConversationCollection.prototype.model = App.Models.Conversation; ConversationCollection.prototype.url = "/conversations"; return ConversationCollection; })(Rev.Collection)); }).call(this);
Version data entries
10 entries across 10 versions & 1 rubygems