A platform for community discussion. Free, open, simple.
The generated plugin should also freeze strings
Robin Warda404cab5096c
diff --git a/lib/generators/plugin/templates/plugin.rb.erb b/lib/generators/plugin/templates/plugin.rb.erbindex bee7fa44867..e5e963734ee 100644--- a/lib/generators/plugin/templates/plugin.rb.erb+++ b/lib/generators/plugin/templates/plugin.rb.erb@@ -1,3 +1,5 @@+# frozen_string_literal: true+# name: <%= name %># about: <%= @about %># version: 0.1@@ -10,7 +12,7 @@ register_asset 'stylesheets/mobile/<%= dasherized_name %>.scss'enabled_site_setting :<%= underscored_name %>_enabled-PLUGIN_NAME ||= '<%= classified_name %>'.freeze+PLUGIN_NAME ||= '<%= classified_name %>'load File.expand_path('lib/<%= dasherized_name %>/engine.rb', __dir__)