Module: ActiveFedora::Noid::Model

Defined in:
lib/active_fedora/noid/model.rb

Overview

Mix this class into an ActiveFedora:Base model in order to have you new objects created with a noid id.

Instance Method Summary collapse

Instance Method Details

#assign_idObject

This overrides the default behavior, which is to ask Fedora for an id

See Also:

  • Persistence.assign_id

10
11
12
# File 'lib/active_fedora/noid/model.rb', line 10

def assign_id
  service.mint
end