You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
376 B
14 lines
376 B
9 months ago
|
module ToggleActiveOrganisationHelper
|
||
|
def toggle_organisation_form_path(action, organisation)
|
||
|
if action == "deactivate"
|
||
|
organisation_new_deactivation_path(organisation)
|
||
|
else
|
||
|
organisation_reactivate_path(organisation)
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def date_type_question(action)
|
||
|
action == "deactivate" ? :deactivation_date_type : :reactivation_date_type
|
||
|
end
|
||
|
end
|