diff --git a/app/models/communication/website/with_media.rb b/app/models/communication/website/with_media.rb index 10c6357737c153eff1d3c6c3f721206d03f516f5..76912792024e628f5fec24ac30f8ff4ea83b1977 100644 --- a/app/models/communication/website/with_media.rb +++ b/app/models/communication/website/with_media.rb @@ -6,6 +6,10 @@ module Communication::Website::WithMedia university.active_storage_blobs.where(id: blob_ids) end + def blob_github_path_generated(blob) + "_media/#{blob.id}.md" + end + def blob_to_jekyll(blob) ApplicationController.render( template: 'active_storage/blobs/jekyll',