From 491bee6e64863f2dc6e8d1f59829e61d4a8c86ad Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 13 Apr 2018 14:10:18 -0700 Subject: Use rich_text instead of active_text Just like we use has_many_attachments instead of active_storage_attachements. --- lib/active_text/attachable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/active_text/attachable.rb') 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 -- cgit v1.2.3