spec/helpers/models/task.coffee in brainstem-js-0.2.1 vs spec/helpers/models/task.coffee in brainstem-js-0.3.0
- old
+ new
@@ -1,14 +1,14 @@
class App.Models.Task extends Brainstem.Model
brainstemKey: "tasks"
paramRoot: 'task'
- url: '/api/tasks.json'
+ urlRoot: '/api/tasks'
@associations:
project: "projects"
assignees: ["users"]
sub_tasks: ["tasks"]
parent: "tasks"
class App.Collections.Tasks extends Brainstem.Collection
model: App.Models.Task
- url: '/api/tasks.json'
+ url: '/api/tasks'