Sha256: e12727d8f8c86c8ca87e914f13a61c3f869150ab52f09c0e634b9542733430af

Contents?: true

Size: 1.37 KB

Versions: 4

Compression:

Stored size: 1.37 KB

Contents

I"r(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.Comment = (function(superClass) {
    extend(Comment, superClass);

    Comment.identity = "Article.Comment";

    Comment.remoteName = "Comment";

    Comment.resourcesUrl = "/articles/:articleId/comments";

    Comment.attributes = {
      author: {
        validations: {
          presence: true
        }
      },
      text: {
        validations: {
          presence: true
        }
      },
      articleId: {
        type: "Int",
        validations: {
          presence: true
        },
        remoteName: "article_id"
      },
      createdAt: {
        type: "Date",
        remoteName: "created_at"
      },
      updatedAt: {
        type: "Date",
        remoteName: "updated_at"
      }
    };

    Comment.paginate = {
      per: 10
    };

    Comment.receivedSignal = function(signal, data) {};

    function Comment(data) {
      Comment.__super__.constructor.call(this, data);
    }

    Comment.prototype.receivedSignal = function(signal, data) {};

    return Comment;

  })(App.Models.Base);

}).call(this);
:ET

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
loco-rails-1.0.2 test/dummy/tmp/cache/assets/test/sprockets/v3.0/c1zTviQtT9SHxdAfBm8on0WmIFl7A5JGOnoKRidR8MQ.cache
loco-rails-1.0.1 test/dummy/tmp/cache/assets/test/sprockets/v3.0/c1zTviQtT9SHxdAfBm8on0WmIFl7A5JGOnoKRidR8MQ.cache
loco-rails-1.0.0 test/dummy/tmp/cache/assets/test/sprockets/v3.0/c1zTviQtT9SHxdAfBm8on0WmIFl7A5JGOnoKRidR8MQ.cache
loco-rails-0.0.1 test/dummy/tmp/cache/assets/test/sprockets/v3.0/c1zTviQtT9SHxdAfBm8on0WmIFl7A5JGOnoKRidR8MQ.cache