Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
//in slug-generator.js
// in generateSlug():
// line 17...
return ic.ajax.request(url, {
type: 'GET'
}).then(function (response) {
return Ember.RSVP.Promise.reject(new Error('BOOM!'));
var slug = response.slugs[0].slug;
self.set('value', slug);
return slug;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.