0
0
Fork 1
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:
Faizaan Gagan 2021-08-13 18:57:20 +05:30
Ursprung 4578cb0a24
Commit 3c70b712bf

Datei anzeigen

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