Sha256: d7599408c9ada2fcd4e1eb75cb9351913e36a8d61124583550877690ced6ef99

Contents?: true

Size: 1.82 KB

Versions: 63

Compression:

Stored size: 1.82 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: {
        type: "Boolean"
      },
      adminRate: {
        type: "Int",
        remoteName: "admin_rate"
      }
    };

    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

63 entries across 26 versions & 1 rubygems

Version Path
loco-rails-3.0.3 test/dummy/tmp/cache/assets/sprockets/v3.0/o_/o_l8yA5mV_ioAn2to-c5KW52rLVRqTUKzzCutnE54ac.cache
loco-rails-2.5.3 test/dummy/tmp/cache/assets/sprockets/v3.0/o_/o_l8yA5mV_ioAn2to-c5KW52rLVRqTUKzzCutnE54ac.cache
loco-rails-2.5.2 test/dummy/tmp/cache/assets/sprockets/v3.0/o_/o_l8yA5mV_ioAn2to-c5KW52rLVRqTUKzzCutnE54ac.cache
loco-rails-3.0.2 test/dummy/tmp/cache/assets/sprockets/v3.0/o_/o_l8yA5mV_ioAn2to-c5KW52rLVRqTUKzzCutnE54ac.cache
loco-rails-3.0.1 test/dummy/tmp/cache/assets/sprockets/v3.0/o_/o_l8yA5mV_ioAn2to-c5KW52rLVRqTUKzzCutnE54ac.cache
loco-rails-2.5.1 test/dummy/tmp/cache/assets/sprockets/v3.0/o_/o_l8yA5mV_ioAn2to-c5KW52rLVRqTUKzzCutnE54ac.cache
loco-rails-2.5.0 test/dummy/tmp/cache/assets/sprockets/v3.0/o_/o_l8yA5mV_ioAn2to-c5KW52rLVRqTUKzzCutnE54ac.cache
loco-rails-2.4.0 test/dummy/tmp/cache/assets/sprockets/v3.0/6Y/6YYg_LR2QbnaKw4WC48TzvD0rurWd4de-wXtJUjRGPs.cache
loco-rails-2.4.0 test/dummy/tmp/cache/assets/sprockets/v3.0/7q/7qb76Ub-BpfaLLF0i-snb9gNaxAJ2RIEaWdgLteKBCE.cache
loco-rails-2.4.0 test/dummy/tmp/cache/assets/sprockets/v3.0/o_/o_l8yA5mV_ioAn2to-c5KW52rLVRqTUKzzCutnE54ac.cache
loco-rails-2.3.0 test/dummy/tmp/cache/assets/sprockets/v3.0/o_/o_l8yA5mV_ioAn2to-c5KW52rLVRqTUKzzCutnE54ac.cache
loco-rails-2.3.0 test/dummy/tmp/cache/assets/sprockets/v3.0/6Y/6YYg_LR2QbnaKw4WC48TzvD0rurWd4de-wXtJUjRGPs.cache
loco-rails-2.3.0 test/dummy/tmp/cache/assets/sprockets/v3.0/7q/7qb76Ub-BpfaLLF0i-snb9gNaxAJ2RIEaWdgLteKBCE.cache
loco-rails-3.0.0 test/dummy/tmp/cache/assets/sprockets/v3.0/7q/7qb76Ub-BpfaLLF0i-snb9gNaxAJ2RIEaWdgLteKBCE.cache
loco-rails-3.0.0 test/dummy/tmp/cache/assets/sprockets/v3.0/6Y/6YYg_LR2QbnaKw4WC48TzvD0rurWd4de-wXtJUjRGPs.cache
loco-rails-3.0.0 test/dummy/tmp/cache/assets/sprockets/v3.0/o_/o_l8yA5mV_ioAn2to-c5KW52rLVRqTUKzzCutnE54ac.cache
loco-rails-2.2.2 test/dummy/tmp/cache/assets/sprockets/v3.0/6Y/6YYg_LR2QbnaKw4WC48TzvD0rurWd4de-wXtJUjRGPs.cache
loco-rails-2.2.2 test/dummy/tmp/cache/assets/sprockets/v3.0/7q/7qb76Ub-BpfaLLF0i-snb9gNaxAJ2RIEaWdgLteKBCE.cache
loco-rails-2.2.2 test/dummy/tmp/cache/assets/sprockets/v3.0/o_/o_l8yA5mV_ioAn2to-c5KW52rLVRqTUKzzCutnE54ac.cache
loco-rails-2.2.1 test/dummy/tmp/cache/assets/sprockets/v3.0/6Y/6YYg_LR2QbnaKw4WC48TzvD0rurWd4de-wXtJUjRGPs.cache