mygengo 1.2 → 1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/mygengo-ruby/api_handler.rb +2 -1
- data/lib/mygengo.rb +1 -1
- metadata +1 -1
@@ -288,7 +288,8 @@ module MyGengo
|
|
288
288
|
# <tt>ids</tt> - An Array of job IDs you want to delete.
|
289
289
|
def deleteTranslationJobs(params = {})
|
290
290
|
if params[:ids] and params[:ids].kind_of?(Array)
|
291
|
-
params[:
|
291
|
+
params[:job_ids] = params[:ids].map { |i| i.to_s() }.join(',')
|
292
|
+
params.delete(:ids)
|
292
293
|
end
|
293
294
|
|
294
295
|
self.send_to_mygengo('translate/jobs', params)
|
data/lib/mygengo.rb
CHANGED