Skip to content

Commit

Permalink
Merge pull request #7 from performant-software/feature/udcsl116_video…
Browse files Browse the repository at this point in the history
…s_pdfs

UDCSL #116 - Videos/PDFs
  • Loading branch information
dleadbetter authored Feb 9, 2023
2 parents 39b7650 + d6691bc commit 15c59ea
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/models/concerns/triple_eye_effable/resourceable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module Resourceable
delegate :content_url, to: :resource_description, allow_nil: true
delegate :content_download_url, to: :resource_description, allow_nil: true
delegate :content_iiif_url, to: :resource_description, allow_nil: true
delegate :content_inline_url, to: :resource_description, allow_nil: true
delegate :content_preview_url, to: :resource_description, allow_nil: true
delegate :content_thumbnail_url, to: :resource_description, allow_nil: true
delegate :content_type, to: :resource_description, allow_nil: true
Expand Down
1 change: 1 addition & 0 deletions app/models/triple_eye_effable/resource_description.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class ResourceDescription < ApplicationRecord
attr_accessor :content_url
attr_accessor :content_download_url
attr_accessor :content_iiif_url
attr_accessor :content_inline_url
attr_accessor :content_preview_url
attr_accessor :content_thumbnail_url
attr_accessor :content_type
Expand Down
6 changes: 4 additions & 2 deletions app/serializers/triple_eye_effable/resourceable_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ module ResourceableSerializer
extend ActiveSupport::Concern

included do
index_attributes :content_type, :content_url, :content_download_url, :content_iiif_url, :content_preview_url, :content_thumbnail_url, :manifest
show_attributes :content_type, :content_url, :content_download_url, :content_iiif_url, :content_preview_url, :content_thumbnail_url, :manifest
index_attributes :content_type, :content_url, :content_download_url, :content_iiif_url, :content_inline_url,
:content_preview_url, :content_thumbnail_url, :manifest
show_attributes :content_type, :content_url, :content_download_url, :content_iiif_url, :content_inline_url,
:content_preview_url, :content_thumbnail_url, :manifest
end

end
Expand Down
1 change: 1 addition & 0 deletions app/services/triple_eye_effable/cloud.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Cloud
content_url
content_download_url
content_iiif_url
content_inline_url
content_preview_url
content_thumbnail_url
content_type
Expand Down

0 comments on commit 15c59ea

Please sign in to comment.