geddy / model

Datastore-agnostic ORM in JavaScript
265 stars 55 forks source link

allow model.defineProperties to be called with an object and allow the p... #143

Closed smitt04 closed 10 years ago

smitt04 commented 10 years ago

allow model.defineProperties to be called with an object and allow the property to have a string for the type instead of an object.

Example: this.defineProperties({ dashboard_id: 'string', user_id: 'int', title: 'string', columns: 'int', created_time: 'int' });

ben-ng commented 10 years ago

Great! Thanks!