Skip to content

Commit

Permalink
fix: Handle allowed engines
Browse files Browse the repository at this point in the history
Fixes rails g kaminari:views doesn't generate anything kaminari#1071
  • Loading branch information
Xavier-IV committed Aug 21, 2023
1 parent cd89438 commit 01c661f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kaminari-core/lib/generators/kaminari/views_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def template_engine
'to convert erb templates manually.'
end

engine || 'erb'
%w[erb haml slim].include?(engine) ? engine : 'erb'
end
end

Expand Down

0 comments on commit 01c661f

Please sign in to comment.