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.
18 lines
438 B
18 lines
438 B
2 years ago
|
module ToggleActiveSchemeHelper
|
||
|
def toggle_scheme_form_path(action, scheme)
|
||
|
if action == "deactivate"
|
||
|
scheme_new_deactivation_path(scheme)
|
||
|
else
|
||
|
scheme_reactivate_path(scheme)
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def date_type_question(action)
|
||
|
action == "deactivate" ? :deactivation_date_type : :reactivation_date_type
|
||
|
end
|
||
|
|
||
|
def date_question(action)
|
||
|
action == "deactivate" ? :deactivation_date : :reactivation_date
|
||
|
end
|
||
|
end
|