testdouble/moderate_parameters

Handle logging for non-primitive presence

Closed this issue · 1 comments

Given:

params = ActionController::Parameters.new(thing: {  sub_array: [:foo, :bar] })

with

params.require(:thing).moderate('foo', 'bar', :sub_array)

Will log that :sub_array is missing even though it is there, just not properly defined.

Resolved by 8404fa1