Skip to content

Commit

Permalink
The generated plugin should also freeze strings
Browse files Browse the repository at this point in the history
  • Loading branch information
eviltrout committed Oct 3, 2019
1 parent 32a11a9 commit a404cab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/generators/plugin/templates/plugin.rb.erb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# name: <%= name %>
# about: <%= @about %>
# version: 0.1
Expand All @@ -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__)

Expand Down

0 comments on commit a404cab

Please sign in to comment.