Skip to content

Commit

Permalink
Merge pull request #32 from wistityhq/fix/configDashboard
Browse files Browse the repository at this point in the history
Remove toJSON attribute from models in dashboard config controller
  • Loading branch information
Lo茂c Saint-Roch committed Nov 13, 2015
2 parents bf97972 + ae99f99 commit 932af02
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/configuration/hooks/dashboard/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 932af02

Please sign in to comment.