Sha256: 01874cedabb993a75c432571b9e547f6050728042f072d599c94ddaca187579d
Contents?: true
Size: 1 KB
Versions: 3
Compression:
Stored size: 1 KB
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, param: "page-num"} 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
3 entries across 3 versions & 1 rubygems