Last active
January 19, 2016 06:40
-
-
Save darlanalves/168cdba3062a1d523c04 to your computer and use it in GitHub Desktop.
New syntax for Gisele models + ES6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Model } from Gisele; | |
const fields = { | |
name: String | |
}; | |
export class User extends Model.new(fields) { | |
modelMethod() { | |
// ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment