Use remote translations objects instead of hashes
This way we can simplify the code dealing with the translatable association.
This commit is contained in:
@@ -4,7 +4,7 @@ module RemotelyTranslatable
|
||||
def detect_remote_translations(*args)
|
||||
return [] unless Setting["feature.remote_translations"].present? && api_key_has_been_set_in_secrets?
|
||||
|
||||
RemoteTranslation.remote_translations_for(*args)
|
||||
RemoteTranslation.for(*args)
|
||||
end
|
||||
|
||||
def api_key_has_been_set_in_secrets?
|
||||
|
||||
Reference in New Issue
Block a user