mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
4397bcf86e
Fixes #358 - Altered post model to enable eager loading of author and user relationships - Fixed broken base model toJSON method, which prevented eager resolution of relationships (thanks @tgriesser) - Passes author information to template. - Added unit tests for author helper. - Added unit tests for findOne and findAll additions to Post Model which take into account the eager relationships Usage: `{{author}}` -- returns the full name of the post author `{{author.attribute}}` -- returns property of the current post author as described by the user model |
||
---|---|---|
.. | ||
controllers | ||
data | ||
filters | ||
helpers | ||
models | ||
permissions | ||
plugins | ||
views | ||
api.js | ||
errorHandling.js | ||
require-tree.js |