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

12 lines
300 B
CoffeeScript

class Locomotive.Models.ThemeAsset extends Backbone.Model
paramRoot: 'theme_asset'
urlRoot: "#{Locomotive.mounted_on}/theme_assets"
class Locomotive.Models.ThemeAssetsCollection extends Backbone.Collection
model: Locomotive.Models.ThemeAsset
url: "#{Locomotive.mounted_on}/theme_assets"