Skip to content

Commit

Permalink
Merge pull request #11 from hudmol/a-better-default-generator
Browse files Browse the repository at this point in the history
generate ids from a sequence per repo
  • Loading branch information
marktriggs authored Jul 14, 2016
2 parents 4ba08b1 + 72f8adc commit c8e69ed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backend/model/id_generators/default_generator.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
require 'securerandom'

class DefaultGenerator < GeneratorInterface

def generate(record)
SecureRandom.hex
Sequence.get("/repositories/#{record.repo_id}/archival_objects/component_id_for_work_order")
end

end

0 comments on commit c8e69ed

Please sign in to comment.