aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_text/attribute.rb
diff options
context:
space:
mode:
authorJavan Makhmali <javan@javan.us>2018-10-04 08:00:38 -0400
committerJavan Makhmali <javan@javan.us>2018-10-04 08:00:38 -0400
commitd43d7f197005a10349ee08e482fffc94a772cf72 (patch)
tree955e09ca7a50907d2b213955274a3d8389ec4654 /lib/action_text/attribute.rb
parentb4c71643af11cb94c25d7aa994090579dd43f943 (diff)
downloadrails-d43d7f197005a10349ee08e482fffc94a772cf72.tar.gz
rails-d43d7f197005a10349ee08e482fffc94a772cf72.tar.bz2
rails-d43d7f197005a10349ee08e482fffc94a772cf72.zip
Delegate string methods to content
Closes #11
Diffstat (limited to 'lib/action_text/attribute.rb')
-rw-r--r--lib/action_text/attribute.rb2
1 files changed, 1 insertions, 1 deletions
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: "<h1>Funny times!</h1>")
# message.content.to_s # => "<h1>Funny times!</h1>"
- # 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.