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
500 B
18 lines
500 B
2 years ago
|
module ToggleActiveLocationHelper
|
||
|
def toggle_location_form_path(action, location)
|
||
|
if action == "deactivate"
|
||
|
scheme_location_new_deactivation_path(location.scheme, location)
|
||
|
else
|
||
|
scheme_location_reactivate_path(location.scheme, location)
|
||
|
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
|