import Ember from 'ember';

export default Ember.Route.extend({
  model: function(params) {
    return this.store.find('namespace', btoa(params.namespace));
  }
});

import Ember from 'ember';

export default Ember.Route.extend({
  setupController: function(controller, model) {
    // Model Hook is called only when the page is accessed via direct
    // navigation
    var namespace = this.store.fetch('namespace', btoa(model.namespace));
    controller.set('model', namespace);
  },
});

Fix model hook not being called when performing 'transitionToRoute'
Fix model hook not being called when performing 'transitionToRoute'
