From d43d7f197005a10349ee08e482fffc94a772cf72 Mon Sep 17 00:00:00 2001 From: Javan Makhmali Date: Thu, 4 Oct 2018 08:00:38 -0400 Subject: Delegate string methods to content Closes #11 --- lib/action_text/attribute.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/action_text') diff --git a/lib/action_text/attribute.rb b/lib/action_text/attribute.rb index 8426726a38..8439073c00 100644 --- a/lib/action_text/attribute.rb +++ b/lib/action_text/attribute.rb @@ -12,7 +12,7 @@ module ActionText # # message = Message.create!(content: "

Funny times!

") # message.content.to_s # => "

Funny times!

" - # message.content.body.to_plain_text # => "Funny times!" + # message.content.to_plain_text # => "Funny times!" # # The dependent RichText model will also automatically process attachments links as sent via the Trix-powered editor. # These attachments are associated with the RichText model using Active Storage. -- cgit v1.2.3