diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2018-05-28 17:44:34 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2018-05-28 17:44:34 +0200 |
commit | 0c1d78b128aa4a1c2a8acd7986d753a56a93c697 (patch) | |
tree | 2101f83fe2af965eabbbd83fc6d246559fb1f13d /app | |
parent | 751d5edc70f67a6b29571a2005b700781ffec075 (diff) | |
download | rails-0c1d78b128aa4a1c2a8acd7986d753a56a93c697.tar.gz rails-0c1d78b128aa4a1c2a8acd7986d753a56a93c697.tar.bz2 rails-0c1d78b128aa4a1c2a8acd7986d753a56a93c697.zip |
Use the correct API for blob assignment
Diffstat (limited to 'app')
-rw-r--r-- | app/models/action_text/rich_text.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |