Sha256: 5e8b6273dc0ee9ebbc913d7d00473df56ee808899ef35b90de0aa813bc5c671e
Contents?: true
Size: 1.05 KB
Versions: 49
Compression:
Stored size: 1.05 KB
Contents
I"#(function() { var User, UserCollection, 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('User', User = (function(superClass) { extend(User, superClass); function User() { return User.__super__.constructor.apply(this, arguments); } User.prototype.url = function() { return "/users/" + this.id; }; return User; })(Rev.Model)); Rev.appObject('Collections.Users', UserCollection = (function(superClass) { extend(UserCollection, superClass); function UserCollection() { return UserCollection.__super__.constructor.apply(this, arguments); } UserCollection.prototype.model = App.Models.User; UserCollection.prototype.url = "/users"; return UserCollection; })(Rev.Collection)); }).call(this); :ET
Version data entries
49 entries across 44 versions & 1 rubygems