engine/app/assets/javascripts/locomotive/models/snippet.js.coffee

11 lines
274 B
CoffeeScript

class Locomotive.Models.Snippet extends Backbone.Model
paramRoot: 'snippet'
urlRoot: "#{Locomotive.mount_on}/snippets"
class Locomotive.Models.SnippetsCollection extends Backbone.Collection
model: Locomotive.Models.Snippet
url: "#{Locomotive.mount_on}/snippets"