Skip to content

v3.0.1

Compare
Choose a tag to compare
@elrayle elrayle released this 26 Nov 18:39

Change Log

  • Bug Fix: Allow override of identifier_in_use lambda (#86)

Optional Configuration of identifier_in_use

This fix allows you to set a new lambda for identifier_in_use which checks to see if the newly minted id is already in use. By default, this method always indicates that the new id is not in use by always returning false.

Example Optional Configuration:

::Noid::Rails.config.identifier_in_use = lambda do |id|
  ActiveFedora::Base.exists?(id) || ActiveFedora::Base.gone?(id)
end