CharlotteGore/Cassette-Express — pull request #4 by kevinkuebler (2012-08-10 13:44:52+00:00)
Title: Dev mode setting

This change coerces the model config value to 'debug' when 'development' is passed in. This is to allow the user to do this in their app.js:

var cassette = require('cassette-express')({mode: app.settings.env});

Since express sets the env setting to 'development' by default, this allows us to automatically get the correct behavior from cassette-express regardless of which env we're in, without changing any code.

An alternative to this change, would be to reverse the `if` check in the `useAsset` function in cassette.js and explicitly check for 'production', assuming any other value to mean debug.

Aaaaaannnd ... I screwed up the diff again. This time on cassette.js. The line I changed was line #39. Sorry about that - I'll get it right eventually. :-)