Commit 679574f2 by liyijie

use ransack instead of where

parent 1b5b2aac
......@@ -44,7 +44,7 @@ module TalltyImportExport
else
records.group(@group_by).count.keys.each do |key|
@group_key = key
export_workbook workbook, records.where(@group_by => key)
export_workbook workbook, records.ransack("#{@group_by_eq}" => key).result
end
end
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment