Fix & tidy coffeescript mvc model index template

Fix Incorrect check to ignore index from import
Fix invalid coffeescript syntax
Add missing db variable definition
Because it's coffeescript, != will produce !== when compiled
On 29 Oct 2014 09:56, "Pete Cooper" <notifications@github.com> wrote:

> In app/templates/extras/mvc-coffee/model-index.coffee:
>
> >
> >  sequelize = new Sequelize config.db
> >
> >  fs.readdirSync(__dirname)
> >    .filter (file) ->
> > -    (file.indexOf('.') !== 0) && (file !== 'index.js');
> > +    file.indexOf('.') != 0 and file != 'index.coffee'
>
> any reason for replacing !== with !=?
>
> --
> Reply to this email directly or view it on GitHub
> <https://github.com/petecoop/generator-express/pull/56/files#r19527877>.
>