Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add Model builder to global

  • Loading branch information...
commit a32914c9d00f61e120de01824b845c3b15041ff8 1 parent 3996e00
ben ben-lin authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/global.js
6 lib/global.js
View
@@ -60,5 +60,11 @@ module.exports = function ( base_dir, callback ){
return yaml.load( source );
});
+ global.__defineGetter__( 'Model', function (){
+ var Model = require( './model/builder' );
+
+ return Model;
+ });
+
callback();
};
Please sign in to comment.
Something went wrong with that request. Please try again.