Migrate to ember 2.7 + correct jquery null context error + declare shim for popcorn (instead of silencing the JSHint error)
import { JSONAPISerializer } from 'ember-cli-mirage';
import _ from 'lodash/lodash';
export default JSONAPISerializer.extend({
serialize(response) {
return _(response.models).map((discourse) => { return [discourse.id, {count: discourse.count, label: discourse.label}];}).object().value();
}
});