lib/generators/anyway/config/templates/config.rb.tt in anyway_config-2.4.2 vs lib/generators/anyway/config/templates/config.rb.tt in anyway_config-2.5.0
- old
+ new
@@ -1,8 +1,11 @@
# frozen_string_literal: true
<% module_namespacing do -%>
class <%= class_name %>Config < ApplicationConfig
+<%- if needs_config_name? %>
+ config_name :<%= file_name %>
+<%- end -%>
<%- unless parameters.empty? -%>
attr_config <%= parameters.map { |param| ":#{param}" }.join(", ") %>
<%- end -%>
end
<% end -%>