From 0c1d78b128aa4a1c2a8acd7986d753a56a93c697 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 28 May 2018 17:44:34 +0200 Subject: Use the correct API for blob assignment --- app/models/action_text/rich_text.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/action_text/rich_text.rb b/app/models/action_text/rich_text.rb index efc35a6465..e4fc178ba4 100644 --- a/app/models/action_text/rich_text.rb +++ b/app/models/action_text/rich_text.rb @@ -8,6 +8,6 @@ class ActionText::RichText < ActiveRecord::Base has_many_attached :embeds after_save do - self.embeds_attachments_blobs = body.attachments.map(&:attachable) + self.embeds_blobs = body.attachments.map(&:attachable) end end -- cgit v1.2.3