]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user_block.rb
Improve handling of HTTP errors in search
[rails.git] / app / models / user_block.rb
index 3759afd692f4c5dbd0e3a66f43b12ce9b12a71a3..de14dcaa9617f351941b93925cc7b1453ee6357b 100644 (file)
@@ -16,7 +16,7 @@ class UserBlock < ActiveRecord::Base
   ##
   # return a renderable version of the reason text.
   def reason
-    RichText.new(read_attribute(:reason_format), read_attribute(:reason))
+    RichText.new(self[:reason_format], self[:reason])
   end
 
   ##