Skip to content

Instantly share code, notes, and snippets.

@dmonagle
dmonagle / ember_crud.coffee
Last active Dec 12, 2015
Ember mixins for CRUD functionality.
View ember_crud.coffee
Ember.EditController = Ember.Mixin.create(
saveError: false
saveInvalid: false
isEditing: false
# Set associations to be associations of the content. These will then be checked for validity on save
# and all of the flags, such as isDirty and isLoaded, will take these associations into consideration.
#
# Eg: A user may have an address model which is edited within the same transaction.
# In this case you would put: