X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/45487e1ff8e7d334792440a2b5b3b1067269bfaf..5e90b569db1b0f09063d1eed0aada7a513b60dcb:/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