Skip to content

Commit

Permalink
Fixes Options documention formatting for has_rich_text
Browse files Browse the repository at this point in the history
  • Loading branch information
spilth committed Jan 22, 2022
1 parent 2189d97 commit e9cf3e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actiontext/lib/action_text/attribute.rb
Expand Up @@ -26,10 +26,10 @@ module Attribute
# Message.all.with_rich_text_content_and_embeds # Avoids N+1 queries when you just want the body and attachments.
# Message.all.with_all_rich_text # Loads all rich text associations.
#
# === Options
# ==== Options
#
# * <tt>:encrypted</tt> - Pass true to encrypt the rich text attribute. The encryption will be non-deterministic. See
# +ActiveRecord::Encryption::EncryptableRecord.encrypts+. Default: false.
# * <tt>:encrypted</tt> - Pass true to encrypt the rich text attribute. The encryption will be non-deterministic. See
# +ActiveRecord::Encryption::EncryptableRecord.encrypts+. Default: false.
def has_rich_text(name, encrypted: false)
class_eval <<-CODE, __FILE__, __LINE__ + 1
def #{name}
Expand Down

0 comments on commit e9cf3e4

Please sign in to comment.