Remove the AttributeWhitelist instance from ActiveForm::Base. Instead use a Set instance variable to hold the allowed attributes.