mirror of
https://github.com/discourse/discourse.git
synced 2025-02-27 02:44:09 +08:00
Update the template for plugin generator to be rubocop compliant
This commit is contained in:
parent
10565e4623
commit
32a11a93ac
@ -4,15 +4,15 @@
|
|||||||
# authors: <%= @github_username %>
|
# authors: <%= @github_username %>
|
||||||
# url: https://github.com/<%= @github_username %>
|
# url: https://github.com/<%= @github_username %>
|
||||||
|
|
||||||
register_asset "stylesheets/common/<%= dasherized_name %>.scss"
|
register_asset 'stylesheets/common/<%= dasherized_name %>.scss'
|
||||||
register_asset "stylesheets/desktop/<%= dasherized_name %>.scss"
|
register_asset 'stylesheets/desktop/<%= dasherized_name %>.scss'
|
||||||
register_asset "stylesheets/mobile/<%= dasherized_name %>.scss"
|
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 %>'.freeze
|
||||||
|
|
||||||
load File.expand_path('../lib/<%= dasherized_name %>/engine.rb', __FILE__)
|
load File.expand_path('lib/<%= dasherized_name %>/engine.rb', __dir__)
|
||||||
|
|
||||||
after_initialize do
|
after_initialize do
|
||||||
# https://github.com/discourse/discourse/blob/master/lib/plugin/instance.rb
|
# https://github.com/discourse/discourse/blob/master/lib/plugin/instance.rb
|
||||||
|
Loading…
x
Reference in New Issue
Block a user