0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/server/models/base
Hannah Wolfe 7761873db7 Abstract findPage & add pagination Bookshelf plugin
closes #2896

- move default options / custom code into model functions
- move most of the filtering logic into base/utils.filtering (to be relocated)
- move the remainder of findPage back into base/index.js and remove from posts/users&tags
- move pagination-specific logic to a separate 'plugin' file
- pagination provides new fetchPage function, similar to fetchAll but handling pagination
- findPage model method uses fetchPage
- plugin is fully unit-tested and documented
2015-06-22 10:20:47 +01:00
..
index.js Abstract findPage & add pagination Bookshelf plugin 2015-06-22 10:20:47 +01:00
pagination.js Abstract findPage & add pagination Bookshelf plugin 2015-06-22 10:20:47 +01:00
token.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
utils.js Abstract findPage & add pagination Bookshelf plugin 2015-06-22 10:20:47 +01:00