Merge pull request #32 from wistityhq/fix/configDashboard

Remove toJSON attribute from models in dashboard config controller
This commit is contained in:
Loïc Saint-Roch 2015-11-13 18:04:32 +01:00
commit 932af02f18

View File

@ -56,6 +56,11 @@ module.exports = function * () {
// Set the models.
output.models = strapi.models;
// Delete `toJSON` attribute in every models.
_.forEach(output.models, function (model) {
delete model.attributes.toJSON;
});
// Format `config.api` for multi templates models.
_.forEach(strapi.api, function (api, key) {
if (api.templates) {