Ghost/core/server/models
Jason Williams 9fe573a0c5 Refactor content deletion
- Simplify the `init` method in `models/index.js` so that it no longer
  returns a promise. Easier to use.
- Eliminates the `deleteAllContent` method from `models/index.js` as it
  can all be handled at the API layer in a single spot.
- Optimize `destroyAllContent` in `api/db.js`. Eliminates
  double-fetching every post from the database and converting it to
  JSON. Also only fetches ids from the database instead of the entire
  model.
- Eliminates the custom static method `destroy` in the Post model in
  favor of handling detaching tag relations in a single place (the
  `destroying` event). This also eliminates a big source of unneeded
  database round trips--needing to get post ids to feed into
  `Post.destroy()` which then re-fetches the post again.
2016-03-22 10:10:09 -05:00
..
base Refactor authentication API into pipeline format 2016-03-07 11:53:54 -06:00
plugins Harvest server side strings 2015-12-19 12:12:16 +01:00
accesstoken.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app-field.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app-setting.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
client-trusted-domain.js Add table columns for OAuth 2015-09-02 13:39:22 +01:00
client.js Move client secret logic into the model 2016-02-18 20:33:37 +00:00
index.js Refactor content deletion 2016-03-22 10:10:09 -05:00
permission.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
post.js Refactor content deletion 2016-03-22 10:10:09 -05:00
refreshtoken.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
role.js Harvest server side strings 2015-12-19 12:12:16 +01:00
settings.js Reorganise & rename server/data/ folder internals 2016-02-04 20:39:15 +00:00
tag.js Refactor content deletion 2016-03-22 10:10:09 -05:00
user.js Fixing typo in i18n key 2016-02-18 12:52:53 +00:00