Skip to content

Commit

Permalink
Merge pull request #134 from IU-Libraries-Joint-Development/essi-751_…
Browse files Browse the repository at this point in the history
…fix_primary_fields

Move primary fields outside of after init.
  • Loading branch information
dlpierce authored Mar 30, 2020
2 parents 128d0ca + e23412c commit 4870ec4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/initializers/extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
Hyrax::Forms::FileManagerForm.include Extensions::Hyrax::Forms::FileManagerForm::ViewingMetadata
Hyrax::FileSetPresenter.include Extensions::Hyrax::FileSetPresenter::ViewingHint

# primary fields support
Hyrax::Forms::WorkForm.class_eval { include Extensions::Hyrax::Forms::WorkForm::PrimaryFields }

# TODO: determine if needed?
# iiif manifest support
Hyrax::WorkShowPresenter.prepend Extensions::Hyrax::WorkShowPresenter::ManifestMetadata
Expand All @@ -27,3 +24,6 @@
Hyrax::FileSetPresenter.include Extensions::Hyrax::FileSetPresenter::CollectionBanner
Hyrax::WorkShowPresenter.include Extensions::Hyrax::WorkShowPresenter::CollectionBanner
end

# primary fields support
Hyrax::Forms::WorkForm.class_eval { include Extensions::Hyrax::Forms::WorkForm::PrimaryFields }

0 comments on commit 4870ec4

Please sign in to comment.