strategy #redirect! error when url string is frozen
megatux opened this issue · 1 comments
megatux commented
When working on a custom Devise login strategy I found that passing a frozen url throws a 'can't modify frozen string' error.
redirect! Figaro.env.some_url
I fixed it by #dup'ing the string before calling:
redirect! Figaro.env.some_url.dup
but I think it's better to do this inside the library. I've created PR #137 for this.