Allow different remote translation keys per tenant

Note we don't need to update the tests; the tests themselves help us
confirm that `Rails.application.secrets` and `Tenant.current_secrets`
return the same object on single-tenant applications.
This commit is contained in:
Javi Martín
2022-09-29 22:58:10 +02:00
parent 338f4929ca
commit 18f1d5c1a3
4 changed files with 9 additions and 6 deletions

View File

@@ -26,6 +26,6 @@ module RemotelyTranslatable
end
def api_key_has_been_set_in_secrets?
Rails.application.secrets.microsoft_api_key.present?
Tenant.current_secrets.microsoft_api_key.present?
end
end