Strip Attributes

JSON →
library 2.0.1 ·ruby
verified Jun 19, 2026

StripAttributes automatically strips all ActiveRecord model attributes of leading and trailing whitespace before validation. If the attribute is blank, it strips the value to nil.