Created
August 20, 2014 12:07
-
-
Save WebCloud/3a660d5880f7cdeb9a98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App.ApplicationAdapter.reopen | |
pathForType: (type)-> | |
decamelized = Ember.String.decamelize(type) | |
"#{Ember.String.pluralize(decamelized)}.json" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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