1602 / railway-pagination

Paginatio plugin for RailwayJS MVC framework
9 stars 6 forks source link

feature-request: "paginate" method should be added to model relations #9

Open bioform opened 11 years ago

bioform commented 11 years ago

To use it like:

currentUser.posts.paginate...
1602 commented 11 years ago

as far as I remember 'defineScope' was created for that purposes

On Tue, Mar 26, 2013 at 3:21 PM, bioform notifications@github.com wrote:

To use it like:

currentUser.posts.paginate...

— Reply to this email directly or view it on GitHubhttps://github.com/1602/railway-pagination/issues/9 .

bioform commented 11 years ago

It will be better to "defineScope" in "init" method of "railway-pagination" instead of complex logic in model code. this scope should be compatible with "paginate" view helper