Class: Rubocop::Cop::ActionPolicy::ApplicationPolicy
- Inherits:
-
RuboCop::Cop::Base
- Object
- RuboCop::Cop::Base
- Rubocop::Cop::ActionPolicy::ApplicationPolicy
- Extended by:
- RuboCop::Cop::AutoCorrector
- Includes:
- RuboCop::Cop::EnforceSuperclass
- Defined in:
- lib/rubocop/cop/action_policy/application_policy.rb
Overview
Checks that your policies are subclasses of ‘ApplicationPolicy`.
Constant Summary collapse
- MSG =
"Policies should subclass `ApplicationPolicy`."- SUPERCLASS =
"ApplicationPolicy"- BASE_PATTERN =
"(const (const nil? :ActionPolicy) :Base)"