Sha256: c7680e607b300c5d811e3044b9635e342910aacdc1de919ef183e99acfb52bc6

Contents?: true

Size: 225 Bytes

Versions: 15

Compression:

Stored size: 225 Bytes

Contents

PostsApp.Post = Backbone.Model.extend
  url: ->
    if this.id
      '/admin/posts/' + this.id
    else
      '/admin/posts'

PostsApp.PostCollection = Backbone.Collection.extend
  model: PostsApp.Post

  url: '/admin/posts'

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
crowdblog-0.0.16 app/assets/javascripts/crowdblog/models/post.js.coffee
crowdblog-0.0.15 app/assets/javascripts/crowdblog/models/post.js.coffee
crowdblog-0.0.14 app/assets/javascripts/crowdblog/models/post.js.coffee
crowdblog-0.0.13 app/assets/javascripts/crowdblog/models/post.js.coffee
crowdblog-0.0.12 app/assets/javascripts/crowdblog/models/post.js.coffee
crowdblog-0.0.10 app/assets/javascripts/crowdblog/models/post.js.coffee
crowdblog-0.0.9 app/assets/javascripts/crowdblog/models/post.js.coffee
crowdblog-0.0.8 app/assets/javascripts/crowdblog/models/post.js.coffee
crowdblog-0.0.7 app/assets/javascripts/crowdblog/models/post.js.coffee
crowdblog-0.0.6 app/assets/javascripts/crowdblog/models/post.js.coffee
crowdblog-0.0.5 app/assets/javascripts/crowdblog/models/post.js.coffee
crowdblog-0.0.4 app/assets/javascripts/crowdblog/models/post.js.coffee
crowdblog-0.0.3 app/assets/javascripts/crowdblog/models/post.js.coffee
crowdblog-0.0.2 app/assets/javascripts/crowdblog/models/post.js.coffee
crowdblog-0.0.1 app/assets/javascripts/crowdblog/models/post.js.coffee