Skip to content
This repository was 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
r7kamura wants to merge 1 commit intoryanb:masterfrom
r7kamura:feature/string-plus
Open

Fix FrozenError from nil.to_s << on Ruby 2.7#382
r7kamura wants to merge 1 commit intoryanb:masterfrom
r7kamura:feature/string-plus

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.

1 participant