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 #rails #rubyonrails #bosnia #programming #tutorials #rubydeveloper #railsdeveloper

Nezir Zahirovic

Freelance software developer Ruby On Rails (4 years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles