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

@@ -5,6 +5,6 @@ class MediaMetadataController < ApplicationController
def index
@media_metadata = authorize MediaMetadata.visible(CurrentUser.user).paginated_search(params, count_pages: true)
respond_with(@media_metadata)
respond_with(@media_metadata, model: "MediaMetadata")
end
end