lib/volt/models/persistors/model_store.rb in volt-0.7.17 vs lib/volt/models/persistors/model_store.rb in volt-0.7.18

- old
+ new

@@ -3,11 +3,11 @@ module Persistors class ModelStore < Store include StoreState - ID_CHARS = [('a'..'z'), ('A'..'Z'), ('0'..'9')].map {|v| v.to_a }.flatten + ID_CHARS = [('a'..'f'), ('0'..'9')].map {|v| v.to_a }.flatten attr_reader :model attr_accessor :in_identity_map def initialize(model, tasks) @@ -44,10 +44,10 @@ end # Create a random unique id that can be used as the mongo id as well def generate_id id = [] - 12.times { id << ID_CHARS.sample } + 24.times { id << ID_CHARS.sample } return id.join end # Called when the model changes