0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server/models
Christopher Giffard 4397bcf86e Template Helpers: Added author hbs helper
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
2013-08-23 19:13:32 +10:00
..
base.js Template Helpers: Added author hbs helper 2013-08-23 19:13:32 +10:00
index.js Data models import, export, and reset for 002 2013-08-05 13:56:30 +01:00
permission.js App restructure - closes #245 2013-07-11 20:23:34 +01:00
post.js Template Helpers: Added author hbs helper 2013-08-23 19:13:32 +10:00
role.js App restructure - closes #245 2013-07-11 20:23:34 +01:00
settings.js App restructure - closes #245 2013-07-11 20:23:34 +01:00
user.js Minor code cleanup, docs and other bits & pieces 2013-08-06 22:24:40 +01:00