diff options
Diffstat (limited to 'app/models/inline_media_attachment.rb')
-rw-r--r-- | app/models/inline_media_attachment.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/inline_media_attachment.rb b/app/models/inline_media_attachment.rb index ac4388a6d..dcf9a5ca9 100644 --- a/app/models/inline_media_attachment.rb +++ b/app/models/inline_media_attachment.rb @@ -9,6 +9,10 @@ # class InlineMediaAttachment < ApplicationRecord + include Cacheable + belongs_to :status, inverse_of: :inlined_attachments belongs_to :media_attachment, inverse_of: :inlines + + cache_associated :status, :media_attachment end |