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

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

Set config.active_record.whitelist_attributes to true by default
Set config.active_record.whitelist_attributes to true by default
