Skip to content

Commit

Permalink
Passively receive getDataModel to avoid pintura dependence on "app" m…
Browse files Browse the repository at this point in the history
…odule
  • Loading branch information
kriszyp committed Aug 25, 2010
1 parent b540370 commit cabb859
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/pintura.js
Expand Up @@ -20,9 +20,11 @@ var config = exports.config = {
security: require("./security").DefaultSecurity(),
responseCache: require("perstore/store/memory").Memory("response"), //require("perstore/store/filesystem").FileSystem("response", {defaultExtension: "cache",dataFolder: "cache" }),
serverName: "Pintura",
customRoutes: []
customRoutes: [],
getDataModel: function(){
throw new Error("You must assign a getDataModel method to the pintura config object in order to expose data");
}
};
config.getDataModel = require("app").getDataModel;

exports.app = JsgiApp(null, config);

Expand Down

0 comments on commit cabb859

Please sign in to comment.