Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-09 20:02:54 +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
|
|
@ -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|
|
|
||||||
if enabled?
|
|
||||||
::ExtraLocalesController.prepend ExtraLocalesControllerCustomWizard
|
::ExtraLocalesController.prepend ExtraLocalesControllerCustomWizard
|
||||||
::InvitesController.prepend InvitesControllerCustomWizard
|
::InvitesController.prepend InvitesControllerCustomWizard
|
||||||
::Wizard::Field.prepend CustomWizardFieldExtension
|
::Wizard::Field.prepend CustomWizardFieldExtension
|
||||||
::Wizard::Step.prepend CustomWizardStepExtension
|
::Wizard::Step.prepend CustomWizardStepExtension
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
DiscourseEvent.trigger(:custom_wizard_ready)
|
DiscourseEvent.trigger(:custom_wizard_ready)
|
||||||
end
|
end
|
||||||
|
|
Laden …
In neuem Issue referenzieren