Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of https://github.com/Entea/ember-rest

  • Loading branch information...
commit 77c15d7ffa0731577487945ccea3b21e2cecf6bf 2 parents fdcd403 + 6fe6e55
@dgeb dgeb authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/ember-rest.js
View
4 src/ember-rest.js
@@ -211,7 +211,7 @@ Ember.Resource = Ember.Object.extend(Ember.ResourceAdapter, Ember.Copyable, {
Is this a new resource?
*/
isNew: function() {
- return (this._resourceId() === undefined);
+ return Ember.empty(this._resourceId());
},
/**
@@ -224,7 +224,7 @@ Ember.Resource = Ember.Object.extend(Ember.ResourceAdapter, Ember.Copyable, {
var url = this.resourceUrl,
id = this._resourceId();
- if (id !== undefined)
+ if (!Ember.empty(id))
url += '/' + id;
return url;
Please sign in to comment.
Something went wrong with that request. Please try again.