I have to change the route in a way that I need to have the original route as well as change the path of the route in a env is available.
this is how I am thinking of doing
custom_org = ENV['CUSTOM_ORG']&.downcase
custom_org_pronoun = custom_org.pluralize
if plural_custom_org_pronoun.present?
resources :organizations, only: %i[], path: custom_org_pronoun do
resources :merge_users, only: %i[new create], path: '/merge-users'
end
end
resources :organizations, only: %i[], path: plural_custom_org_pronoun do
resources :merge_users, only: %i[new create], path: '/merge-users'
end