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}"
|
||||
end
|
||||
end
|
||||
super(url)
|
||||
super
|
||||
end
|
||||
|
||||
private def post_process_invite(user)
|
||||
super(user)
|
||||
super
|
||||
@user = user
|
||||
end
|
||||
end
|
12
plugin.rb
12
plugin.rb
|
@ -157,14 +157,10 @@ after_initialize do
|
|||
redirect_to_wizard_if_required if current_user
|
||||
end
|
||||
|
||||
reloadable_patch do |plugin|
|
||||
if enabled?
|
||||
::ExtraLocalesController.prepend ExtraLocalesControllerCustomWizard
|
||||
::InvitesController.prepend InvitesControllerCustomWizard
|
||||
::Wizard::Field.prepend CustomWizardFieldExtension
|
||||
::Wizard::Step.prepend CustomWizardStepExtension
|
||||
end
|
||||
end
|
||||
::ExtraLocalesController.prepend ExtraLocalesControllerCustomWizard
|
||||
::InvitesController.prepend InvitesControllerCustomWizard
|
||||
::Wizard::Field.prepend CustomWizardFieldExtension
|
||||
::Wizard::Step.prepend CustomWizardStepExtension
|
||||
|
||||
DiscourseEvent.trigger(:custom_wizard_ready)
|
||||
end
|
||||
|
|
Laden …
In neuem Issue referenzieren