import Ember from 'ember';

export default Ember.Route.extend({
    queryParams: {
        page: { refreshModel: true },
        sort: { refreshModel: true },
    },

    model(params) {
        const user_id = this.paramsFor('user').user_id;
        return this.store.find('user', user_id).then(
            (user) => {
                params.user_id = user.get('id');
                return Ember.RSVP.hash({
                    crates: this.store.query('crate', params),
                    user
                });
            },
            (e) => {
                if (e.errors.any(e => e.detail === 'Not Found')) {
                    this
                        .controllerFor('application')
                        .set('nextFlashError', `User '${params.user_id}' does not exist`);
                    return this.replaceWith('index');
                }
            }
        )
    },
});


@@ -193,24 +193,26 @@
    const
+ %7B
  user_id
  = this.
@@ -203,16 +203,18 @@
  user_id
+ %7D
  = this.
@@ -230,24 +230,16 @@
 ('user')
-.user_id
 ;%0A      
@@ -876,16 +876,17 @@
        )
+;
 %0A    %7D,%0A

Fix linting problems