Skip to content

pass options to the Ability/Rule class#7

Open
fluxsaas wants to merge 2 commits intorunemadsen:masterfrom
easyPEP:feature_lookup_backbone_class
Open

pass options to the Ability/Rule class#7
fluxsaas wants to merge 2 commits intorunemadsen:masterfrom
easyPEP:feature_lookup_backbone_class

Conversation

@fluxsaas
Copy link
Contributor

@fluxsaas fluxsaas commented Jun 9, 2014

you can pass an option to lookup the specific backboneClass. this comes
in handy if you do not have the default backboneClass defined on your
backbone model.

you can pass in a function or attribute name:

a = new Ability({}, {rule: {backboneClass: 'foo'}})

or:

a = new Ability({}, {rule: {backboneClass: dunction(entity){return entity.modelName}}})

fluxsaas added 2 commits June 9, 2014 19:44
you can pass an option to lookup the specific backboneClass. this comes
in handy if you do not have the default `backboneClass` defined on your
backbone model.

you can pass in a function or attribute name:

a = new Ability({}, {rule: {backboneClass: 'foo'}})

or:

a = new Ability({}, {rule: {backboneClass: 'foo'}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant