diff options
author | Gareth Rees <gareth@mysociety.org> | 2015-04-29 12:21:47 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2015-05-12 16:13:16 +0100 |
commit | 4a244582f4da2247cedbf2b4ec0a0ee64b50ca55 (patch) | |
tree | 059a91b2bab19f44a51cde84b45f2c0511da1ecd | |
parent | f2b292f61a8494ce77dbf5bd7ced2b010d20b688 (diff) |
Use #raw_body sugar method
-rw-r--r-- | app/models/outgoing_message.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/outgoing_message.rb b/app/models/outgoing_message.rb index e59ca4bd4..8240eb784 100644 --- a/app/models/outgoing_message.rb +++ b/app/models/outgoing_message.rb @@ -141,7 +141,7 @@ class OutgoingMessage < ActiveRecord::Base end def body - text = read_attribute(:body).dup + text = raw_body.dup return text if text.nil? text = clean_text(text) |