Skip to content

Commit

Permalink
Update asset_resource.rb
Browse files Browse the repository at this point in the history
added new annotationType as a method
  • Loading branch information
ekemeyer authored Aug 27, 2024
1 parent b6b8ff4 commit 1854cd7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/models/asset_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ def canonical_meta_tag
def proxy_start_time
proxy_start_time ||= find_annotation_attribute("proxy_start_time")
end


def ams1_legacy_metadata
ams1_legacy_metadata ||= find_annotation_attribute("ams1_legacy_metadata")
end

def find_annotation_attribute(attribute)
if admin_data.annotations.select { |a| a.annotation_type == attribute }.present?
return admin_data.annotations.select { |a| a.annotation_type == attribute }.map(&:value)
Expand Down

0 comments on commit 1854cd7

Please sign in to comment.