import DS from 'ember-data';
import Ember from 'ember';

const VALIDATION_ERROR_STATUSES = [400, 422];

export default DS.RESTAdapter.extend({
  namespace: 'api',

  isInvalid: function(status, headers, payload) {
    return VALIDATION_ERROR_STATUSES.indexOf(status) >= 0;
  }
});

@@ -25,35 +25,8 @@
 ta';
-%0Aimport Ember from 'ember';
 %0A%0Aco
@@ -162,26 +162,8 @@
 atus
-, headers, payload
 ) %7B%0A

Fix style issues