]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/redaction.rb
Fix some rubocop rails style issues
[rails.git] / app / models / redaction.rb
index b3c5ec5ba6753469a8b87c9cf6bb6af0fb4c36e0..fda59f33bcd10e5098af8d210faf5f11715237e0 100644 (file)
@@ -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