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/attachment.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/active_text/attachment.rb') diff --git a/lib/active_text/attachment.rb b/lib/active_text/attachment.rb index 870390f63e..fab6c3507b 100644 --- a/lib/active_text/attachment.rb +++ b/lib/active_text/attachment.rb @@ -20,7 +20,7 @@ module ActiveText end def from_attachable(attachable, attributes = {}) - if node = node_from_attributes(attachable.to_active_text_attributes(attributes)) + if node = node_from_attributes(attachable.to_rich_text_attributes(attributes)) new(node, attachable) end end @@ -91,7 +91,7 @@ module ActiveText end def attachable_attributes - @attachable_attributes ||= (attachable.try(:to_active_text_attributes) || {}).stringify_keys + @attachable_attributes ||= (attachable.try(:to_rich_text_attributes) || {}).stringify_keys end def sgid_attributes -- cgit v1.2.3