Skip to content
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

Support additional parameters for infinityModel() #9

Merged
merged 1 commit into from
Apr 8, 2015
Merged

Support additional parameters for infinityModel() #9

merged 1 commit into from
Apr 8, 2015

Conversation

bruce
Copy link
Contributor

@bruce bruce commented Apr 7, 2015

Additional options can be provided in the object passed to
InfinityRoute's infinityModel() for use by DS.Store.find().
The perPage and startingPage properties will still be passed as
per_page and page params, respectively.

Acceptance tests use a new /category/:category route in the
dummy application.

For #6.

@bruce
Copy link
Contributor Author

bruce commented Apr 7, 2015

Note: submitted this a bit prematurely; still adding support for _loadingMore use of find(). Working on this (and hopefully a good test).

@bruce bruce changed the title Support additional parameters for infinityModel() [WIP] Support additional parameters for infinityModel() Apr 7, 2015
@bruce
Copy link
Contributor Author

bruce commented Apr 7, 2015

This is now ready for review.

@bruce bruce changed the title [WIP] Support additional parameters for infinityModel() Support additional parameters for infinityModel() Apr 7, 2015

actions: {
infinityLoad: function() {
this._infinityLoad();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@hhff
Copy link
Collaborator

hhff commented Apr 7, 2015

Really really nice! thankyou @bruce !

If you can squash this into a single commit - and add something to README to reflect this change, I'll merge and release asap

@bruce
Copy link
Contributor Author

bruce commented Apr 8, 2015

Thanks! I'll get that in tonight/tomorrow morning.

Additional options can be provided in the object passed to
InfinityRoute's infinityModel() for use by DS.Store.find().
The perPage and startingPage properties will still be passed as
per_page and page params, respectively.

Tests are provided using a new /category/:category route in the
dummy application.
@bruce
Copy link
Contributor Author

bruce commented Apr 8, 2015

@hhff Squashed and README content added. Thanks!

hhff added a commit that referenced this pull request Apr 8, 2015
Support additional parameters for infinityModel() closes #11
@hhff hhff merged commit 567bb06 into adopted-ember-addons:master Apr 8, 2015
@hhff hhff mentioned this pull request Apr 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants