Sha256: 46d2507d58ca441d24bd8538b733c7169ef40e2a641a90c65bec4059849cc166
Contents?: true
Size: 1.03 KB
Versions: 10
Compression:
Stored size: 1.03 KB
Contents
(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);
Version data entries
10 entries across 10 versions & 1 rubygems