```ruby
module ProtectedAttributes
  class Railtie < ::Rails::Railtie
    config.before_configuration do
      config.action_controller.permit_all_parameters = true
    end
  end
end
```

Set config.active_record.whitelist_attributes to true by default
user
```ruby
module ProtectedAttributes
  class Railtie < ::Rails::Railtie
    config.before_configuration do
      config.action_controller.permit_all_parameters = true
      config.active_record.whitelist_attributes = true
    end
  end
end
```
assistant