protobuf-activerecord
protobuf-activerecord copied to clipboard
set nullify to empty array to address protobuf 4 deprecation warning
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.
Assuming this is reasonable, any chance this could be back-ported to at least v6.0?