I’m having trouble figuring the correct way to use Ember-Data to allow me use a model named “preferences” (plural). What I try is overriding application serializer:
typeForRoot: (root) ->
return 'preferences' if root is 'preferences'
@_super root
But when trying to .save() a model I get: Uncaught Error: No model was found for ‘preference’ Looking closer I see the model’s constructor has a property ‘typeKey’ which is set to ‘preference’ (singular)
How can I disable this behavior for just this model?