lib/gemsmith/templates/%gem_name%/lib/%gem_path%.rb.tt in gemsmith-11.2.0 vs lib/gemsmith/templates/%gem_name%/lib/%gem_path%.rb.tt in gemsmith-11.3.0
- old
+ new
@@ -1,7 +1,7 @@
require "<%= config.dig(:gem, :path) %>/identity"
<%- if config.dig(:generate, :cli) -%>
require "<%= config.dig(:gem, :path) %>/cli"
<%- end -%>
-<%- if config.dig(:generate, :rails) -%>
+<%- if config.dig(:generate, :engine) || config.dig(:generate, :rails) -%>
require "<%= config.dig(:gem, :path) %>/engine"
<%- end -%>