Permalink
Browse files

add Model builder to global

  • Loading branch information...
1 parent 3996e00 commit a32914c9d00f61e120de01824b845c3b15041ff8 @ben-lin ben-lin committed Aug 27, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 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();
};

0 comments on commit a32914c

Please sign in to comment.