Skip to content

2.0.0.beta4

Pre-release
Pre-release

Choose a tag to compare

@mjgiarlo mjgiarlo released this 21 Oct 22:55
· 131 commits to main since this release
726c10c

The default minter in ActiveFedora::Noid 2.x is a new database-backed minter (vs. a filesystem-backed minter) to better support multi-host production installations (where a shared database is commonplace).

If you want to keep using the filesystem-backed minter, you can configure that in e.g. config/initializers/active_fedora-noid.rb:

require 'active_fedora/noid'

ActiveFedora::Noid.configure do |config|
  config.minter_class = ActiveFedora::Noid::Minter::File
end

If on the other hand you want to start using the new database-backed minter, there is a rake task that will copy your minter's state from the filesystem to the database:

$ rake active_fedora:noid:migrate:file_to_database

And there's an accompanying rake task for copying state from the database back to the file if you decide to move back later.

If you wish to continue using a custom minter, note that the public API for minters has changed. See the README for more: https://github.com/projecthydra-labs/active_fedora-noid#custom-minters