X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dc2a2c8ebd1a11e4a64555fda22c6859a51defff..ab12b6161aa61463d7fbb0a9c77ae1d9ae14082a:/app/models/user_block.rb?ds=inline diff --git a/app/models/user_block.rb b/app/models/user_block.rb index 3759afd69..de14dcaa9 100644 --- a/app/models/user_block.rb +++ b/app/models/user_block.rb @@ -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 ##