Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: emberjs/data
...
head fork: emberjs/data
Checking mergeability… Don’t worry, you can still create the pull request.
  • 4 commits
  • 2 files changed
  • 0 commit comments
  • 3 contributors
Commits on Sep 24, 2012
@sly7-7 sly7-7 Using StateManager.currentPath 26d5a10
Commits on Oct 08, 2012
@gabrielgrant gabrielgrant fix markdown for link to the Ember Data guide (still 404-ing) 19d5a64
Commits on Oct 18, 2012
@wagenet wagenet Merge pull request #396 from sly7-7/patch-1
Minor doc refactoring: Using StateManager.currentPath
074fdae
@wagenet wagenet Merge pull request #408 from gabrielgrant/patch-1
fix markdown for link to the Ember Data guide (still 404-ing)
90bd0ab
View
2  BREAKING_CHANGES.md
@@ -334,7 +334,7 @@ If you were using the REST Adapter before, your app should continue to
work. However, if you built a custom adapter, many of the APIs have
changed.
-See (http://emberjs.com/guides/ember-data)[the Ember Data guide] for
+See [the Ember Data guide](http://emberjs.com/guides/ember-data) for
more information.
Some examples:
View
4 packages/ember-data/lib/system/model/states.js
@@ -27,7 +27,7 @@ var get = Ember.get, set = Ember.set, guidFor = Ember.guidFor;
string. You can determine a record's current state by getting its manager's
current state path:
- record.get('stateManager.currentState.path');
+ record.get('stateManager.currentPath');
//=> "created.uncommitted"
The `DS.Model` states are themselves stateless. What we mean is that,
@@ -113,7 +113,7 @@ var get = Ember.get, set = Ember.set, guidFor = Ember.guidFor;
state in a more user-friendly way than examining its state path. For example,
instead of doing this:
- var statePath = record.get('stateManager.currentState.path');
+ var statePath = record.get('stateManager.currentPath');
if (statePath === 'created.inFlight') {
doSomething();
}

No commit comments for this range

Something went wrong with that request. Please try again.