media metadata: fix exception in /media_metadata.json?only=media_asset.

Fix NameError exception caused by the MediaMetadataController trying to lookup "MediaMetadatum" as the model name.
This commit is contained in:
evazion
2022-10-14 15:32:48 -05:00
parent 93887b00b8
commit 4dc1a109c5
3 changed files with 13 additions and 1 deletions

View File

@@ -32,4 +32,8 @@ class MediaMetadata < ApplicationRecord
def frame_delays
metadata["Ugoira:FrameDelays"].to_a
end
def self.available_includes
[:media_asset]
end
end