Skip to content

Instantly share code, notes, and snippets.

@WebCloud
Created August 20, 2014 12:07
Show Gist options
  • Save WebCloud/3a660d5880f7cdeb9a98 to your computer and use it in GitHub Desktop.
Save WebCloud/3a660d5880f7cdeb9a98 to your computer and use it in GitHub Desktop.
App.ApplicationAdapter.reopen
pathForType: (type)->
decamelized = Ember.String.decamelize(type)
"#{Ember.String.pluralize(decamelized)}.json"
App.ApplicationAdapter.reopen({
pathForType: function(type){
decamelized = Ember.String.decamelize(type);
return "#{Ember.String.pluralize(decamelized)}.json";
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment