Skip to content

Commit

Permalink
🐛 App was not loading after updating Hyrax
Browse files Browse the repository at this point in the history
This commit will adjust for the changes introduced in this commit:
samvera/hyrax@8fc0894
  • Loading branch information
kirkkwang committed Jan 29, 2024
1 parent 963fda8 commit db7e39d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ GIT

GIT
remote: https://github.com/samvera/hyrax.git
revision: 68fcebe7fd4fb72ad1d9e83baf4cd17e905a9d85
revision: 74703481e1a9cd07831c439e788338fc6bd74c17
branch: double_combo
specs:
hyrax (5.0.0.rc2)
Expand Down
3 changes: 2 additions & 1 deletion app/models/generic_work_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ class GenericWorkResource < Hyrax::Work
include Hyrax::Schema(:with_pdf_viewer)
include Hyrax::Schema(:with_video_embed)
include Hyrax::ArResource
include Hyrax::Works::ValkyrieMigration

Hyrax::ValkyrieLazyMigration.migrating(self, from: GenericWork)

if ActiveModel::Type::Boolean.new.cast(ENV.fetch('HYKU_IIIF_PRINT', false))
include IiifPrint.model_configuration(
Expand Down
3 changes: 2 additions & 1 deletion app/models/image_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ class ImageResource < Hyrax::Work
include Hyrax::Schema(:with_pdf_viewer)
include Hyrax::Schema(:with_video_embed)
include Hyrax::ArResource
include Hyrax::Works::ValkyrieMigration

Hyrax::ValkyrieLazyMigration.migrating(self, from: Image)

if ActiveModel::Type::Boolean.new.cast(ENV.fetch('HYKU_IIIF_PRINT', false))
include IiifPrint.model_configuration(
Expand Down

0 comments on commit db7e39d

Please sign in to comment.