Hello!
I need to supress the logging of params for certain actions, i.e. I
don’t
want the params hash to show up in one of my actions.
Does anyone know how to do that?
Thanks,
Rob
Hello!
I need to supress the logging of params for certain actions, i.e. I
don’t
want the params hash to show up in one of my actions.
Does anyone know how to do that?
Thanks,
Rob
Define a method like this:
def filter_parameters(params)
params.dup.delete_if { |k, v| k == 'profile' }
end
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs