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

Fix #803: add ApplicationPolicy cop #804

Closed
wants to merge 1 commit into from

Conversation

hoshy
Copy link

@hoshy hoshy commented Oct 7, 2022

When using the active_policy gem you should create an ApplicationPolicy class and inherit your resource policies from it.

Problem
When using the active_policy you should create an ApplicationPolicy class and inherit your resource policies from it (like you do with the ResourceController and ApplicationController in Rails).

This PR implements a cop thats checks, that policies subclass ApplicationPolicy and may auto-correct findings – similar to the Rails/ApplicationController-Cop.

When using the active_policy gem you should create an ApplicationPolicy class and inherit your resource policies from it.
@koic
Copy link
Member

koic commented Oct 7, 2022

Thank you for your contribution. However, I'm closing this PR for the following reason:
#803 (comment)

Thank you.

@koic koic closed this Oct 7, 2022
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.

2 participants