Skip to content
Snippets Groups Projects
Commit df3de0d4 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

protected

parent 148f3204
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,13 @@ module WithMedia
blobs_with_ids [best_featured_image]
end
# Can be overwrite to get featured_image from associated objects (ex: parents)
def best_featured_image(fallback: true)
featured_image
end
protected
def rich_text_reflection_names
@rich_text_reflection_names ||= _reflections.select { |name, reflection| reflection.class_name == "ActionText::RichText" }.keys
end
......@@ -23,13 +30,6 @@ module WithMedia
}.flatten
end
# Can be overwrite to get featured_image from associated objects (ex: parents)
def best_featured_image(fallback: true)
featured_image
end
protected
def blobs_with_ids(ids)
university.active_storage_blobs.where(id: ids.flatten.compact)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment