diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2018-04-13 14:10:18 -0700 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2018-04-13 14:10:18 -0700 |
commit | 491bee6e64863f2dc6e8d1f59829e61d4a8c86ad (patch) | |
tree | e5c536c6cd106685633d2e7d1fc67f2d8b95406c /lib/active_text/attachable.rb | |
parent | 7c4e70ea0bf0f00c0e919128447412fab49772f9 (diff) | |
download | rails-491bee6e64863f2dc6e8d1f59829e61d4a8c86ad.tar.gz rails-491bee6e64863f2dc6e8d1f59829e61d4a8c86ad.tar.bz2 rails-491bee6e64863f2dc6e8d1f59829e61d4a8c86ad.zip |
Use rich_text instead of active_text
Just like we use has_many_attachments instead of active_storage_attachements.
Diffstat (limited to 'lib/active_text/attachable.rb')
-rw-r--r-- | lib/active_text/attachable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/active_text/attachable.rb b/lib/active_text/attachable.rb index 3a6648331e..f3ea47282f 100644 --- a/lib/active_text/attachable.rb +++ b/lib/active_text/attachable.rb @@ -53,7 +53,7 @@ module ActiveText super.merge(attachable_sgid: attachable_sgid) end - def to_active_text_attributes(attributes = {}) + def to_rich_text_attributes(attributes = {}) attributes.dup.tap do |attributes| attributes[:sgid] = attachable_sgid attributes[:content_type] = attachable_content_type |