1
0
Fork 0

Remove enabled? check from extension prepension

Dieser Commit ist enthalten in:
Angus McLeod 2020-04-30 10:54:30 +10:00
Ursprung d8b9f5acac
Commit 7cc84e4a25
2 geänderte Dateien mit 6 neuen und 10 gelöschten Zeilen

Datei anzeigen

@ -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

Datei anzeigen

@ -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