vendredi 26 décembre 2014

Why is my model.reload() in afterModel redirecting to a related model?

For some reason calling model.reload() in my afterModel is redirecting to a related model's route, and I can't seem to figure out why.



SkillRoute = Ember.Route.extend
model: (params) ->
@store.find('skill', {slug: params.slug}).then (model) =>
model.get('firstObject')
afterModel: (model) ->
model.reload() # offending line




Aucun commentaire:

Enregistrer un commentaire