title: Update model(then on-screen data) after updating an adapter's host name for accessing API
body: <p>I'm loading data into my Ember-Data store using an adapter(has 2 properties - 'host' and 'namespace').</p>
  
  <p>For argument's sake, let's say our host-name is "<a href="https://yyyyy.com" rel="nofollow noreferrer">https://yyyyy.com</a>", and let's say the data is about customers. The namespace could be 'api'.
  With that in mind, a common request could be directed to "<a href="https://yyyyy.com/api/customers" rel="nofollow noreferrer">https://yyyyy.com/api/customers</a>".</p>
  
  <p>For simplicity, this returns an array of JSON objects, and each object only has a single key - that being 'id'.
  What i'd like to do is access customer data from a different runtime dynamically from within the same app. This means that through the use of some event - for example an "onclick", we change the host from "<a href="https://yyyyy.com" rel="nofollow noreferrer">https://yyyyy.com</a>" to "<a href="https://zzzzz.com" rel="nofollow noreferrer">https://zzzzz.com</a>".</p>
  
  <p>Here's the data I currently have, followed by what i've attempted, and its results:</p>
  
  <p>/templates/customers.hbs</p>
  
  <pre><code>&lt;h3&gt;Customers route&lt;/h3&gt;
  
  &lt;button {{action 'testNewAdapterHost'}}&gt;test importing the new adapter host&lt;/button&gt;
  
  {{#each customers as |customer|}}    
    ID:  {{customer.id}}    
  {{/each}}
  </code></pre>
  
  <p>/routes/customers.js</p>
  
  <pre><code>import Ember from 'ember';   
  const { Route, set } = Ember;
  
  export default Route.extend({
    store: Ember.inject.service('store'),
    model(){
  
    //use of 'reload' is to prevent loading records from cache
    return this.store.findAll('customer', {reload: true});
  
    },
  
    setupController(controller, model){    
      set(controller, 'customers', model);    
    },
    actions:{        
      testNewAdapterHost(){
  
        // alert(this.get('store').adapterFor('baseadapter').get('host')); 
        // returns "https://yyyyy.com" (what I was hoping to see from that alert)
  
        this.get('store').adapterFor('baseadapter').set('host','https://zzzzz.com');
  alert(this.get('store').adapterFor('baseadapter').get('host')); 
  // returns "https://zzzzz.com" (new host value - what I was hoping to see from that alert)
  
        I have tried the following suggestions to get the model to reload with this new host in place, thus hoping for the DOM to update with a new list of customers
        // this.get('model').reload();
        // this.store.get('model').reload();    
        // this.get('model').refresh();
        // the 3 above statements flag an undefined error
  
        // this.refresh();     
        // this.store.findAll('project', {reload: true});
        // this.get('currentModel').reload();
        // the 3 above statements cause a fresh GET request but with the old host value - ie using https://yyyyy.com instead of the desired https://zzzzz.com (verified through network tab in chrome dev tools)
  
      } 
  </code></pre>
  
  <p>Is the way I access the adapter through the use of injecting the store an incorrect way to change/update its host property??</p>
  
  <p>The reason for using 'store' to inject the adapter is based on <a href="https://stackoverflow.com/questions/20388235/how-do-you-access-restadapters-host-and-namespace-inside-a-route-or-controller">this</a> answer. (see comments added to the answer) </p>
  
  <p>adapters/baseadapter.js</p>
  
  <pre><code>import DS from 'ember-data';
  
  export default DS.JSONAPIAdapter.extend({
  
    host: 'http://yyyyy.com',      
    //host: 'http://zzzzz.com',      
    namespace: 'api'
  
  });
  </code></pre>
  
  <p>As mentioned in the comments, some statements return an error(syntax may be off - if so then i'm hoping for a point in the right direction as the docs haven't proven helpful so far).</p>
  
  <p>Other statements cause a fresh request, but the host doesn't seem to have updated.</p>
  
  <p>I'm having no trouble displaying the data from either url when testing each host as the initial value when the app is run.</p>
  
  <p>Any help is appreciated.</p>