14 lines
374 B
Ruby
14 lines
374 B
Ruby
|
module OnboardingsHelper
|
||
|
def submit_onboarding_path_helper(owner)
|
||
|
case owner
|
||
|
when Participant
|
||
|
submit_onboarding_participant_onboardings_path(owner)
|
||
|
when Worker
|
||
|
submit_onboarding_worker_onboardings_path(owner)
|
||
|
# Add cases for other owner types
|
||
|
else
|
||
|
root_path # Fallback path
|
||
|
end
|
||
|
end
|
||
|
end
|