Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-23 01:40:29 +01:00
Remove enabled? check from extension prepension
Dieser Commit ist enthalten in:
Ursprung
d8b9f5acac
Commit
7cc84e4a25
2 geänderte Dateien mit 6 neuen und 10 gelöschten Zeilen
|
@ -8,11 +8,11 @@ module InvitesControllerCustomWizard
|
||||||
url = "/w/#{wizard_id.dasherize}"
|
url = "/w/#{wizard_id.dasherize}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
super(url)
|
super
|
||||||
end
|
end
|
||||||
|
|
||||||
private def post_process_invite(user)
|
private def post_process_invite(user)
|
||||||
super(user)
|
super
|
||||||
@user = user
|
@user = user
|
||||||
end
|
end
|
||||||
end
|
end
|
12
plugin.rb
12
plugin.rb
|
@ -157,14 +157,10 @@ after_initialize do
|
||||||
redirect_to_wizard_if_required if current_user
|
redirect_to_wizard_if_required if current_user
|
||||||
end
|
end
|
||||||
|
|
||||||
reloadable_patch do |plugin|
|
::ExtraLocalesController.prepend ExtraLocalesControllerCustomWizard
|
||||||
if enabled?
|
::InvitesController.prepend InvitesControllerCustomWizard
|
||||||
::ExtraLocalesController.prepend ExtraLocalesControllerCustomWizard
|
::Wizard::Field.prepend CustomWizardFieldExtension
|
||||||
::InvitesController.prepend InvitesControllerCustomWizard
|
::Wizard::Step.prepend CustomWizardStepExtension
|
||||||
::Wizard::Field.prepend CustomWizardFieldExtension
|
|
||||||
::Wizard::Step.prepend CustomWizardStepExtension
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
DiscourseEvent.trigger(:custom_wizard_ready)
|
DiscourseEvent.trigger(:custom_wizard_ready)
|
||||||
end
|
end
|
||||||
|
|
Laden …
In neuem Issue referenzieren