lib/progressrus/store/redis.rb in progressrus-1.0.1 vs lib/progressrus/store/redis.rb in progressrus-1.0.2

- old
+ new

@@ -29,20 +29,20 @@ end def scope(scope) scope = redis.hgetall(key(scope)) scope.each_pair { |id, value| - scope[id] = Progressrus.new(deserialize(value)) + scope[id] = Progressrus.new(**deserialize(value)) } rescue *BACKEND_EXCEPTIONS => e raise Progressrus::Store::BackendError.new(e) end def find(scope, id) value = redis.hget(key(scope), id) return unless value - Progressrus.new(deserialize(value)) + Progressrus.new(**deserialize(value)) rescue *BACKEND_EXCEPTIONS => e raise Progressrus::Store::BackendError.new(e) end def flush(scope, id = nil)