Rails 6 adds filter_attributes on ActiveRecord::Base
05-Sep-2019 1957
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 #Rails #filter_attributes #ActiveRecord::Base #activerecord::base https://rubyonrails.ba/link/rails-6-adds-filter_attributes-on-activerecord-base