Created
June 8, 2015 04:36
-
-
Save Mongey/504897316716b285703d 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
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