Skip to content

Commit

Permalink
In case you try to initialize a minter with a Template object
Browse files Browse the repository at this point in the history
The strange thing is that this has been happening continuously on Travis
in the Sync Minter specs, but not ever locally.  I have no reasonable
hypothesis why this is the case, but if this innocuous change pleases
the CI gods, then FINE.
  • Loading branch information
atz committed Jun 20, 2016
1 parent b8db112 commit 823e44d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_fedora/noid/minter/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Noid
module Minter
class Base < ::Noid::Minter
def initialize(template = default_template)
super(:template => template)
super(:template => template.to_s)
end

def mint
Expand Down
1 change: 1 addition & 0 deletions lib/active_fedora/noid/synchronized_minter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def next_id
# Files opened in append mode seek to end of file
f.rewind
state = state_for(f)
state[:template] &&= state[:template].to_s
minter = ::Noid::Minter.new(state) # minter w/in the minter, lives only for an instant
id = minter.mint

Expand Down

0 comments on commit 823e44d

Please sign in to comment.