plugin.rb (395B)
1 # frozen_string_literal: true 2 3 # name: discourse-plugin-name 4 # about: TODO 5 # version: 0.0.1 6 # authors: Discourse 7 # url: TODO 8 # required_version: 2.7.0 9 10 enabled_site_setting :plugin_name_enabled 11 12 module ::MyPluginModule 13 PLUGIN_NAME = "discourse-plugin-name" 14 end 15 16 require_relative "lib/my_plugin_module/engine" 17 18 after_initialize do 19 # Code which should run after Rails has finished booting 20 end