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

Version Path
revelry_core-0.1.14.0 spec/dummy/tmp/jasmine/assets/models/User.self.js
revelry_core-0.1.13.0 spec/dummy/tmp/jasmine/assets/models/User.self.js
revelry_core-0.1.12.4 spec/dummy/tmp/jasmine/assets/models/User.self.js
revelry_core-0.1.12.2 spec/dummy/tmp/jasmine/assets/models/User.self.js
revelry_core-0.1.11.6 spec/dummy/tmp/jasmine/assets/models/User.self.js
revelry_core-0.1.10.1 spec/dummy/tmp/jasmine/assets/models/User.self.js
revelry_core-0.1.10.0 spec/dummy/tmp/jasmine/assets/models/User.self.js
revelry_core-0.1.9.1 spec/dummy/tmp/jasmine/assets/models/User.self.js
revelry_core-0.1.9.0 spec/dummy/tmp/jasmine/assets/models/User.self.js
revelry_core-0.1.8.0 spec/dummy/tmp/jasmine/assets/models/User.self.js