lib/generators/action_policy/policy/templates/policy.rb.tt in action_policy-0.6.5 vs lib/generators/action_policy/policy/templates/policy.rb.tt in action_policy-0.6.6
- old
+ new
@@ -1,6 +1,6 @@
<% module_namespacing do -%>
-class <%= class_name %>Policy < ApplicationPolicy
+class <%= class_name %>Policy < <%= parent_class_name.classify %>
# See https://actionpolicy.evilmartians.io/#/writing_policies
#
# def index?
# true
# end