FIX: Split by space to support multiple categories export

This commit is contained in:
Vinoth Kannan 2018-05-28 19:19:26 +05:30
parent a585c19f2e
commit 586e45edb9
1 changed files with 1 additions and 0 deletions

View File

@ -1,6 +1,7 @@
desc 'Export all the categories'
task 'export:categories', [:category_ids] => [:environment] do |_, args|
require "import_export/import_export"
ids = args[:category_ids].split(" ")
ImportExport.export_categories(args[:category_ids])
puts "", "Done", ""