Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Fix FrozenError from nil.to_s << on Ruby 2.7 #382

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

r7kamura
Copy link

@r7kamura r7kamura commented Dec 1, 2020

When I tried to upgrade Ruby version from 2.6 to 2.7, I had a problem with FrozenError from #nested_form_for.

capture may return nil, and nil.to_s is frozen from Ruby 2.7.

Ruby 2.6

$ ruby -e 'p nil.to_s.frozen?'
false

Ruby 2.7

$ ruby -e 'p nil.to_s.frozen?'
true

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant