Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-25 18:50:27 +01:00
remove redundant reset method
Dieser Commit ist enthalten in:
Ursprung
4578cb0a24
Commit
3c70b712bf
1 geänderte Dateien mit 0 neuen und 8 gelöschten Zeilen
|
@ -286,14 +286,6 @@ class CustomWizard::Wizard
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def reset_user_progress!
|
|
||||||
UserHistory.where(
|
|
||||||
action: UserHistory.actions[:custom_wizard_step],
|
|
||||||
acting_user_id: user.id,
|
|
||||||
context: id
|
|
||||||
).destroy_all
|
|
||||||
end
|
|
||||||
|
|
||||||
def final_cleanup!
|
def final_cleanup!
|
||||||
if id == user.custom_fields['redirect_to_wizard']
|
if id == user.custom_fields['redirect_to_wizard']
|
||||||
user.custom_fields.delete('redirect_to_wizard')
|
user.custom_fields.delete('redirect_to_wizard')
|
||||||
|
|
Laden …
In neuem Issue referenzieren