X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2d22ab10f759828e27876f138b419ff4c0913b87..dbe165bbb3d6eda37d9579f1ac767599f9055607:/app/models/redaction.rb diff --git a/app/models/redaction.rb b/app/models/redaction.rb index b3c5ec5ba..fda59f33b 100644 --- a/app/models/redaction.rb +++ b/app/models/redaction.rb @@ -17,6 +17,6 @@ class Redaction < ActiveRecord::Base # this method overrides the AR default to provide the rich # text object for the description field. def description - RichText.new(read_attribute(:description_format), read_attribute(:description)) + RichText.new(self[:description_format], self[:description]) end end