1
0
Fork 0

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
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!
if id == user.custom_fields['redirect_to_wizard']
user.custom_fields.delete('redirect_to_wizard')