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

CRUD blocking destroy but not delete #177

Open
cthielen opened this issue Apr 9, 2013 · 1 comment
Open

CRUD blocking destroy but not delete #177

cthielen opened this issue Apr 9, 2013 · 1 comment

Comments

@cthielen
Copy link

cthielen commented Apr 9, 2013

I have a simple model with 'using_access_control' at the top.

To test my rules, I leave Authorization.current_user in its default anonymous user and try:

m = Model.last
m.destroy

and am correctly blocked from doing so, however:

m.delete

works right away. Why is that?

@cthielen
Copy link
Author

cthielen commented Apr 9, 2013

My Rails knowledge may be lacking but is this because ".delete" in ActiveRecord doesn't allow for any hooks or callbacks whatsoever?

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

1 participant