X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2d22ab10f759828e27876f138b419ff4c0913b87..dbe165bbb3d6eda37d9579f1ac767599f9055607:/app/models/user_block.rb 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 ##