- Each RemoteTranslation is associated with a resource (through polymorphic) and has the locale to we want translate. - After create a RemoteTranslation we create a enqueue_remote_translation method that will be send remote translation instance to remote translation client
6 lines
119 B
Ruby
6 lines
119 B
Ruby
FactoryBot.define do
|
|
factory :remote_translation do
|
|
association :remote_translatable, factory: :debate
|
|
end
|
|
end
|