-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uses the method from ajaxSettings instead of passed in #424
base: master
Are you sure you want to change the base?
Commits on May 24, 2015
-
Uses the method from ajaxSettings instead of passed in
If you override ajaxSettings and change the method/type, it was getting ignored in _ajax(). This uses the ajaxSettings method rather than the one passed in, giving users the ability to talk to non-traditional APIs.
Paul Oliver committedMay 24, 2015 Configuration menu - View commit details
-
Copy full SHA for ddd6475 - Browse repository at this point
Copy the full SHA ddd6475View commit details -
ran grunt build to update ember-model.js
Paul Oliver committedMay 24, 2015 Configuration menu - View commit details
-
Copy full SHA for 904b9c5 - Browse repository at this point
Copy the full SHA 904b9c5View commit details
Commits on May 25, 2015
-
Allows you to specify your own success/error callback in ajaxSettings
You can specify a callback on success/error in your ajaxSettings so you can do something like: var mySuccess = function(data, status, jqXHR) { console.log("success"); } var myError = function(jqXHR, status, error) { console.warn("error"); } var ajaxSettings = function(url, method) { return { url: url, type: method, successCallback: mySuccess, errorCallback: myError }; }
Configuration menu - View commit details
-
Copy full SHA for e07f533 - Browse repository at this point
Copy the full SHA e07f533View commit details
Commits on May 26, 2015
-
Configuration menu - View commit details
-
Copy full SHA for f346722 - Browse repository at this point
Copy the full SHA f346722View commit details
Commits on Jun 3, 2015
-
Gives you the ability to override both dataType and contentType
If your API is a bit goofy you can override the ajaxSettings in your RESTAdapter so you can do things like: --> POST URL-Encoded, receive JSON back: myModel.adapter = RESTAdapter.extend({ ajaxSettings: function(url) { type: "POST", contentType: "application/x-www-form-urlencoded", dataType: "json" // ... snip other properties } }); --> PUT JSON encoded content, receive text back myModel.adapter = RESTAdapter.extend({ ajaxSettings: function(url) { type: "PUT", contentType: "json", dataType: "text" // ... snip other properties } });
Paul Oliver committedJun 3, 2015 Configuration menu - View commit details
-
Copy full SHA for 8619189 - Browse repository at this point
Copy the full SHA 8619189View commit details -
Copies dist/ember-model.js to the root folder
Paul Oliver committedJun 3, 2015 Configuration menu - View commit details
-
Copy full SHA for fa02e94 - Browse repository at this point
Copy the full SHA fa02e94View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1300b68 - Browse repository at this point
Copy the full SHA 1300b68View commit details -
Configuration menu - View commit details
-
Copy full SHA for 247860a - Browse repository at this point
Copy the full SHA 247860aView commit details -
Configuration menu - View commit details
-
Copy full SHA for b4b9926 - Browse repository at this point
Copy the full SHA b4b9926View commit details -
Fixes vestigial tail from bad merge
Paul Oliver committedJun 3, 2015 Configuration menu - View commit details
-
Copy full SHA for 708b7f6 - Browse repository at this point
Copy the full SHA 708b7f6View commit details -
Removes default contentType from ajaxSettings
This was causing previously working calls to fail because now our ajax calls have the Content-Type: header being added, making the server return a 400 Bad Request error.
Paul Oliver committedJun 3, 2015 Configuration menu - View commit details
-
Copy full SHA for 095b585 - Browse repository at this point
Copy the full SHA 095b585View commit details
Commits on Nov 20, 2015
-
Merge remote-tracking branch 'ebryn/master'
# Conflicts: # ember-model.js # packages/ember-model/lib/attr.js # packages/ember-model/lib/belongs_to.js # packages/ember-model/lib/has_many.js # packages/ember-model/lib/rest_adapter.js
Paul Oliver committedNov 20, 2015 Configuration menu - View commit details
-
Copy full SHA for 6b0a69e - Browse repository at this point
Copy the full SHA 6b0a69eView commit details -
runs grunt build to make sure ember-model is up to snuff
Paul Oliver committedNov 20, 2015 Configuration menu - View commit details
-
Copy full SHA for d5a123b - Browse repository at this point
Copy the full SHA d5a123bView commit details
Commits on Apr 3, 2016
-
Merge remote-tracking branch 'ebryn/master' into update
# Conflicts: # ember-model.js
Paul Oliver committedApr 3, 2016 Configuration menu - View commit details
-
Copy full SHA for d4f73d8 - Browse repository at this point
Copy the full SHA d4f73d8View commit details -
Paul Oliver committed
Apr 3, 2016 Configuration menu - View commit details
-
Copy full SHA for 2d63621 - Browse repository at this point
Copy the full SHA 2d63621View commit details -
Reverting back to ember.merge because ember 2.2 doesn't support it
Paul Oliver committedApr 3, 2016 Configuration menu - View commit details
-
Copy full SHA for 9c5302a - Browse repository at this point
Copy the full SHA 9c5302aView commit details