Fix for items with newline

This commit is contained in:
Urban Rotnik 2020-01-22 13:15:29 +01:00
parent 9e4ae525e6
commit 8d7f51edde

View file

@ -21,7 +21,7 @@ class RepositoryChecklistValue < ApplicationRecord
end
def export_formatted
formatted(separator: "\n")
repository_checklist_items.pluck(:data).map { |d| d.tr("\n", ' ') }.join("\n")
end
def data