X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/34e3e51456774127d43408b7ab65c24f41373f62..dfc85f089abc60ad1bd481de670413fa509dc36c:/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