mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 12:53:13 +03:00
7aecae11cc
refs https://github.com/TryGhost/Toolbox/issues/356 - we had a function called `getAction` in every model where we were collecting CRUD actions to store in the DB - this function has the same boilerplate code - make sure it's not internal and then construct the object to return - as we add more actions to more models, we probably want to pull this out and just configure the things specific to the model - this commit pulls out the function into the actions plugin and adds a couple of keys to the models to indicate we'd like to store CRUD actions, along with the model name |
||
---|---|---|
.. | ||
content | ||
core | ||
test | ||
.c8rc.json | ||
.eslintignore | ||
.eslintrc.js | ||
.gitignore | ||
.npmignore | ||
config.development.json | ||
ghost.js | ||
Gruntfile.js | ||
index.js | ||
jsconfig.json | ||
loggingrc.js | ||
MigratorConfig.js | ||
package.json |