Skip to content

Instantly share code, notes, and snippets.

@BoLaMN
Created October 31, 2016 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BoLaMN/fd11d3fad0061105f00fb39796cf3d96 to your computer and use it in GitHub Desktop.
Save BoLaMN/fd11d3fad0061105f00fb39796cf3d96 to your computer and use it in GitHub Desktop.
registry.modelBuilder.mixins.define 'MyMixin', require './mixins/my-mixin'
Model.mixin 'MyMixin'
Model.defineProperty 'email', { type: String, required: true }
registry.configureModel Model,
acls: [
{
principalType: 'Role'
principalId: '$everyone'
permission: 'ALLOW'
property: 'login'
}
]
dataSource: Model.dataSource
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment