Sha256: bd0389cbba89c1403882967cdc80e0a8e30ea6f1f25a9bed538dadd1424cd1d9
Contents?: true
Size: 1010 Bytes
Versions: 15
Compression:
Stored size: 1010 Bytes
Contents
class App.Models.Article.Comment extends App.Models.Base @identity = "Article.Comment" @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 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" approved: type: "Boolean" constructor: (data) -> super data @receivedSignal: (signal, data) -> receivedSignal: (signal, data) ->
Version data entries
15 entries across 15 versions & 1 rubygems