test/dummy/app/assets/javascripts/models/article/comment.coffee in loco-rails-0.0.1 vs test/dummy/app/assets/javascripts/models/article/comment.coffee in loco-rails-1.0.0

- old
+ new

@@ -3,10 +3,12 @@ @remoteName = "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} @attributes = author: validations: presence: true @@ -23,9 +25,16 @@ type: "Date" remoteName: "created_at" updatedAt: type: "Date" remoteName: "updated_at" + emotion: + type: "Int" + pinned: + type: "Boolean" + adminRate: + type: "Int" + remoteName: "admin_rate" constructor: (data) -> super data @receivedSignal: (signal, data) -> \ No newline at end of file