Closed yuenmichelle1 closed 4 months ago
Changes
permit
to_h
HashWithIndifferentAccess
Hash
{}
This reminds me that as a future TODO: We need to update our fork talk-api branch of restpack-serializer, similar to how we did panoptes. (I.e. update protected_attributes gem with protected_attributes_continued and update version constraints)
protected_attributes
protected_attributes_continued
Changes
permit
params and convertto_h
because AC Params no longer inherits fromHashWithIndifferentAccess
https://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html#actioncontroller-parameters-no-longer-inherits-from-hashwithindifferentaccess.Hash
(otherwise will return filters as{}
when we do have filters in our params) See: https://github.com/zooniverse/restpack_serializer/blob/637aaaf85eda4f467c034f19f52e3f0cb6b20112/lib/restpack_serializer/options.rb#L58This reminds me that as a future TODO: We need to update our fork talk-api branch of restpack-serializer, similar to how we did panoptes. (I.e. update
protected_attributes
gem withprotected_attributes_continued
and update version constraints)