Ask A Question
Notifications
You’re not receiving notifications from this thread.
Base62 Encoding Short Codes Discussion
Discussion for Base62 Encoding Short Codes
Hi Chris,
why the local variable result is treated as frozen?
Here is the error:
Error:
ShortCodeTest#test_encode_10:
FrozenError: can't modify frozen String: ""
app/models/short_code.rb:20:in prepend'
encode'
app/models/short_code.rb:20:in
test/models/short_code_test.rb:15:in `block in class:ShortCodeTest'