Rails 6 adds filter_attributes on ActiveRecord::Base

A lot of times, we ask user for sensitive data such as password, credit card number etc. We should not be able to see this information in logs. So, there must be a way in Rails to filter out these parameters from logs.Rails provides a way of doing this. We can add parameters to Rails.application.config.filter_parameters.
Rails 6 adds filter_attributes on ActiveRecord::Base #ruby #rubydeveloper #rubyonrails #activerecord::base https://rubyonrails.ba/single/rails-6-adds-filter_attributes-on-activerecord-base

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles