chore: generate representations coming from ActionText in background
This commit is contained in:
parent
4d0961d3ec
commit
37a018880b
3 changed files with 25 additions and 13 deletions
|
@ -10,7 +10,7 @@ module BlobImageProcessorConcern
|
|||
end
|
||||
|
||||
def representation_required?
|
||||
from_champ? || from_messagerie? || is_a_logo?
|
||||
from_champ? || from_messagerie? || logo? || from_action_text?
|
||||
end
|
||||
|
||||
private
|
||||
|
@ -27,6 +27,10 @@ module BlobImageProcessorConcern
|
|||
attachments.any? { _1.name == 'logo' }
|
||||
end
|
||||
|
||||
def from_action_text?
|
||||
attachments.any? { _1.record.class == ActionText::RichText }
|
||||
end
|
||||
|
||||
def watermark_required?
|
||||
attachments.any? { _1.record.class == Champs::TitreIdentiteChamp }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue