Class: Noid::Rails::Minter::Db
- Defined in:
- lib/noid/rails/minter/db.rb
Overview
A minter backed by a database table. You would select this if you need to mint identifers on several distributed front-ends that do not share a common file system.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Noid::Rails::Minter::Base
Instance Method Details
#read ⇒ Object
12 13 14 |
# File 'lib/noid/rails/minter/db.rb', line 12 def read deserialize(instance) end |
#write!(minter) ⇒ Object
16 17 18 |
# File 'lib/noid/rails/minter/db.rb', line 16 def write!(minter) serialize(instance, minter) end |