lib/policy/cli/locale.erb in policy-1.2.0 vs lib/policy/cli/locale.erb in policy-2.0.0
- old
+ new
@@ -6,9 +6,8 @@
# activemodel:
# errors:
# models:
# <%= project.path %>/<%= policy.path %>:
# attributes:
-# base:
-<% attributes.each do |item| -%>
+<% ["base"].concat(attributes.map(&:name)).sort.each do |item| -%>
# <%= item %>:
<% end -%>