Sha256: a3899159b44ae5ce806736469cba25152cdb0c46e7d9ad11c96e99478d1e2a58

Contents?: true

Size: 1.71 KB

Versions: 3

Compression:

Stored size: 1.71 KB

Contents

I"Í(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.resources = {
      url: '/user/articles/:articleId/comments',
      paginate: {
        per: 10
      },
      main: {
        url: '/articles/:articleId/comments',
        paginate: {
          per: 5
        }
      },
      admin: {
        url: '/admin/articles/:articleId/comments',
        paginate: {
          per: 5
        }
      }
    };

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

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

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

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

    return Comment;

  })(App.Models.Base);

}).call(this);
:ET

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
loco-rails-1.0.2 test/dummy/tmp/cache/assets/development/sprockets/v3.0/TD4dcKGExazoEosNFRHPIUWnf6a7mOJfz1CXx9-Mo54.cache
loco-rails-1.0.1 test/dummy/tmp/cache/assets/development/sprockets/v3.0/TD4dcKGExazoEosNFRHPIUWnf6a7mOJfz1CXx9-Mo54.cache
loco-rails-1.0.0 test/dummy/tmp/cache/assets/development/sprockets/v3.0/TD4dcKGExazoEosNFRHPIUWnf6a7mOJfz1CXx9-Mo54.cache