X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/45487e1ff8e7d334792440a2b5b3b1067269bfaf..9401e451d18d34ad8fd27161e66496171dbed54f:/app/models/report.rb diff --git a/app/models/report.rb b/app/models/report.rb index 77a967641..1475197fe 100644 --- a/app/models/report.rb +++ b/app/models/report.rb @@ -36,4 +36,8 @@ class Report < ApplicationRecord else %w[other] end end + + def details + RichText.new("markdown", self[:details]) + end end