|
1 | 1 | # frozen_string_literal: true |
2 | 2 | # name: discourse-custom-wizard |
3 | 3 | # about: Create custom wizards |
4 | | -# version: 1.17.3 |
| 4 | +# version: 1.18.0 |
5 | 5 | # authors: Angus McLeod |
6 | 6 | # url: https://github.com/paviliondev/discourse-custom-wizard |
7 | 7 | # contact emails: angus@thepavilion.io |
8 | 8 |
|
9 | 9 | gem 'liquid', '5.0.1', require: true |
| 10 | +## ensure compatibility with category lockdown plugin |
| 11 | +gem 'request_store', '1.5.0', require: true |
10 | 12 | register_asset 'stylesheets/common/wizard-admin.scss' |
11 | 13 | register_asset 'stylesheets/common/wizard-mapper.scss' |
12 | 14 |
|
@@ -110,9 +112,11 @@ def process_require_tree_discourse_directive(path = ".") |
110 | 112 | ../extensions/invites_controller.rb |
111 | 113 | ../extensions/guardian.rb |
112 | 114 | ../extensions/users_controller.rb |
| 115 | + ../extensions/tags_controller.rb |
113 | 116 | ../extensions/custom_field/preloader.rb |
114 | 117 | ../extensions/custom_field/serializer.rb |
115 | 118 | ../extensions/custom_field/extension.rb |
| 119 | + ../extensions/discourse_tagging.rb |
116 | 120 | ].each do |path| |
117 | 121 | load File.expand_path(path, __FILE__) |
118 | 122 | end |
@@ -249,5 +253,10 @@ def process_require_tree_discourse_directive(path = ".") |
249 | 253 | "#{serializer_klass}_serializer".classify.constantize.prepend CustomWizardCustomFieldSerializer |
250 | 254 | end |
251 | 255 |
|
| 256 | + reloadable_patch do |plugin| |
| 257 | + ::TagsController.prepend CustomWizardTagsController |
| 258 | + ::DiscourseTagging.singleton_class.prepend CustomWizardDiscourseTagging |
| 259 | + end |
| 260 | + |
252 | 261 | DiscourseEvent.trigger(:custom_wizard_ready) |
253 | 262 | end |
0 commit comments