lib/volt/volt/users.rb in volt-0.9.3 vs lib/volt/volt/users.rb in volt-0.9.4.pre1

- old
+ new

@@ -13,9 +13,13 @@ if user_id_signature.nil? nil else index = user_id_signature.index(':') + + # If no index, the cookie is invalid + return nil unless index + user_id = user_id_signature[0...index] if RUBY_PLATFORM != 'opal' hash = user_id_signature[(index + 1)..-1]