This is a simple plugin for ActiveRecord models to define sanitizable attributes. When an object is saved, those attributes will be run through whatever filter you’ve defined. You can define a default filter for all sanitizations.
Dev Purkayastha, Paul McMahon
gem "sanitize_attributes", "~> 0.0.2"