mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
The generated plugin should also freeze strings
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# name: <%= name %>
|
# name: <%= name %>
|
||||||
# about: <%= @about %>
|
# about: <%= @about %>
|
||||||
# version: 0.1
|
# version: 0.1
|
||||||
@@ -10,7 +12,7 @@ register_asset 'stylesheets/mobile/<%= dasherized_name %>.scss'
|
|||||||
|
|
||||||
enabled_site_setting :<%= underscored_name %>_enabled
|
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__)
|
load File.expand_path('lib/<%= dasherized_name %>/engine.rb', __dir__)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user