Adding habits scaffold
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
class HabitTracker.Models.Habit extends Backbone.Model
|
||||
paramRoot: 'habit'
|
||||
|
||||
defaults:
|
||||
name: null
|
||||
habit_type: null
|
||||
score: null
|
||||
notes: null
|
||||
up: null
|
||||
down: null
|
||||
done: null
|
||||
position: null
|
||||
|
||||
class HabitTracker.Collections.HabitsCollection extends Backbone.Collection
|
||||
model: HabitTracker.Models.Habit
|
||||
url: '/habits'
|
||||
Reference in New Issue
Block a user