expand.ejs 234 Bytes BlameHistoryPermalink Edit 1 2 3 4 5 6 7 8 9 10 11 12 13 var Foo = sequelize.define('Foo', { /* attributes */}, { classMethods: { method1: function(){ return 'smth' } }, instanceMethods: { method2: function() { return 'foo' } } }) // ==> Foo.method1() new Foo({}).method2()