11155
(-- --)
December 17, 2010, 9:47am
1
Hi,
I know how to filter passwords, etc etc by using the below
filter_parameter_logging :password
But if i have params like the below so how do i filter them out.
"order"=>{"card_number"=>"4111111111111160"}
ive tried the following below but it doesnt seem to work
filter_parameter_logging :card_number, :order_card_number, :order
How do people do this already? I have searched google, message boards
etc but cant seem to find a solution.
JB
Hi,
I know how to filter passwords, etc etc by using the below
filter_parameter_logging :password
But if i have params like the below so how do i filter them out.
"order"=>{"card_number"=>"4111111111111160"}
ive tried the following below but it doesnt seem to work
filter_parameter_logging :card_number, :order_card_number, :order
Weird as the docs say that filter_parameter_logging looks in subhashes
(so filter_parameter_logging :card_number).
Have you tried using the block form of filter_parameter_logging ?
(which yields all key value pairs to the block)
Fred
11155
(-- --)
December 17, 2010, 4:19pm
3
No, doesnt seem to work either......