Fix admin entity decoration

This commit is contained in:
2024-03-29 13:48:24 +11:00
parent 1364d78f29
commit 59f42c235c
8 changed files with 370 additions and 6 deletions

View File

@@ -0,0 +1,21 @@
# frozen_string_literal: false
# auto_register: false
module Admin
module Decorators
module Movies
class Decorator < SimpleDelegator
include Deps["clients.omdb"]
def poster
omdb_record&.poster
end
def omdb_record
@omdb_record ||= omdb.call(imdb_id: imdb_id)
end
end
end
end
end