Skip to content

Commit

Permalink
Merge pull request #555 from IU-Libraries-Joint-Development/essi-1837…
Browse files Browse the repository at this point in the history
…_load_classes

ESSI-1837 Load all work classes at startup
  • Loading branch information
dlpierce authored Jun 29, 2023
2 parents 6c2e056 + dbb1ef6 commit ce12658
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/extensions/allinson_flex_extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,11 @@

# profile texts
AllinsonFlex::ProfileText.include Extensions::AllinsonFlex::IncludeProfileText

# Create transient new objects for all registered work types. Attempts to work around failures to
# define methods for some properties when loading works (e.g. missing ocr_state)
unless ActiveRecord::Base.connection.migration_context.needs_migration?
Hyrax.config.registered_curation_concern_types.each do |klass|
klass.constantize.new
end
end

0 comments on commit ce12658

Please sign in to comment.