Skip to content

Instantly share code, notes, and snippets.

@basial
Created October 8, 2014 07:40
Show Gist options
  • Save basial/4ae42a097edbf9bd1e3e to your computer and use it in GitHub Desktop.
Save basial/4ae42a097edbf9bd1e3e to your computer and use it in GitHub Desktop.
wrongStations: function() {
var wrongStations = [];
$.each(this.store.all('station').content, function(i, station) {
if (station.get('name').parameterize() !== station.get('slug')) {
console.log(station.get('id'), station.get('name').parameterize(), station.get('slug'));
wrongStations.pushObject(station);
}
});
return wrongStations;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment