Skip to content

Instantly share code, notes, and snippets.

@briangonzalez
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save briangonzalez/02d5a746ba8d83b7967e to your computer and use it in GitHub Desktop.
Save briangonzalez/02d5a746ba8d83b7967e to your computer and use it in GitHub Desktop.
icons
App.Icons = DS.Model.extend({
contents: DS.attr('string')
});
App.IconsSerializer = DS.RESTSerializer.extend({
normalize: function() {
console.log('normalize!');
}
});
App.IconsAdapter = DS.RESTAdapter.extend({
findAll: function(store, type, sinceToken) {
return this.ajax(this.buildURL(type.typeKey), 'GET');
},
buildURL: function() {
return '/assets/icons/sprites/svg-defs.svg';
}
});
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment