Skip to content

Instantly share code, notes, and snippets.

@Mongey
Created June 8, 2015 04:36
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 Mongey/504897316716b285703d to your computer and use it in GitHub Desktop.
Save Mongey/504897316716b285703d to your computer and use it in GitHub Desktop.
import ApplicationAdapter from './application';
export default ApplicationAdapter.extend({
urlForUpdateRecord: function(store, type, snapshot) {
let delta = snapshot.get('rotation_delta')
if(delta != 0){
return 'http://localhost:3000/images/' + snapshot.get('id') + '/rotate';
}
return this._super(store,type,snapshot);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment