Module: Redmine::Export::Text::VersionsTextHelper

Included in:
VersionsHelper
Defined in:
lib/redmine/export/text/versions_text_helper.rb

Instance Method Summary collapse

Instance Method Details

#version_to_text(version) ⇒ Object



24
25
26
27
28
29
30
31
32
33
# File 'lib/redmine/export/text/versions_text_helper.rb', line 24

def version_to_text(version)
  [
    "# #{version.name}",
    format_date(version.effective_date),
    version.description,
    version.fixed_issues.visible.map do |issue|
      "* #{issue.tracker.name} ##{issue.id}: #{issue.subject}\n"
    end.join
  ].compact.join("\n\n")
end