DEV Community

Discussion on: Resolving "rb_check_safe_obj will be removed in Ruby 3.0" warning

Collapse
 
bertocq profile image
BertoCQ

@epigene thank you very much for this article!

It made really easy to figure out what was going on and how to solve it with a quick google search 👏🏿

I would suggest to use Kernel#silence_warnings inside of to_s instead. Tested it locally and doesn't seem to have any disadvantage. What do you think?

suggestion