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