Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How is this different from computed properties? #80

Closed
ondrejsevcik opened this issue Apr 11, 2018 · 1 comment
Closed

How is this different from computed properties? #80

ondrejsevcik opened this issue Apr 11, 2018 · 1 comment

Comments

@ondrejsevcik
Copy link
Contributor

Hi guys, how does this addon differ from custom computed properties on model? So instead of having a dedicated file abilities.js I can place all my permission checks inside model as canXYZ computed property.

Thank you for explanation.

@Exelord
Copy link
Collaborator

Exelord commented Apr 18, 2018

Yes you can :) But this addon is about structure, helpers and readability. It's very thin, but it does some nice work for you.

Remember, it's bad to keep many responsibilities in one class. That's why we have abilities. To make it simple without models dependency.

@Exelord Exelord closed this as completed Apr 23, 2018
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

No branches or pull requests

2 participants