protobuf-activerecord icon indicating copy to clipboard operation
protobuf-activerecord copied to clipboard

set nullify to empty array to address protobuf 4 deprecation warning

Open mogman1 opened this issue 2 years ago • 1 comments

Protobuf issues a deprecation warning about setting the nullify field to nil and instead suggests using an empty array:

DEPRECATION WARNING: ['nullify']=nil is deprecated and will be removed from Protobuf 4.0 (use an empty array instead of nil) (called from block in your_class at /Users/shaun.carlson/code/mail/spec/views/your_class_spec.rb:9)

So...I did that. I also tried to handle for the case when it just so happens that an activerecord object defines a nullify attribute that this value still comes through.

mogman1 avatar Aug 11 '22 21:08 mogman1

Assuming this is reasonable, any chance this could be back-ported to at least v6.0?

mogman1 avatar Aug 11 '22 21:08 mogman1