import Ember from 'ember';

let getCompendiums = function() {
  let ajaxSettings = {
    url: 'daily-riderships',
    queryData: {sparkline: true}
  }
  return Ember.$.ajax(ajaxSettings).done(function(data) {
    return data;
  })
}

export default Ember.Route.extend({
  model(){
    return Ember.RSVP.hash({
      systemTrends: this.store.peekAll('system-trend'),
      compendiums: getCompendiums()
    })
  }
});

import Ember from 'ember';

let getCompendiums = function() {
  let ajaxSettings = {
    url: 'daily-riderships',
    data: {sparkline: true}
  }
  return Ember.$.ajax(ajaxSettings).done(function(data) {
    return data;
  })
}

export default Ember.Route.extend({
  model(){
    return Ember.RSVP.hash({
      systemTrends: this.store.peekAll('system-trend'),
      compendiums: getCompendiums()
    })
  }
});

Fix jQuery AJAX query string setting.
Fix jQuery AJAX query string setting.
