:hocho: An ActiveModel extension that automatically strips all attributes of leading and trailing whitespace before validation. If the attribute is blank, it strips the value to nil.
We started using strip_attributes in our project and found this runtime error when we try to strip a binary column. In PostgreSQL the type is called BYTEA.
Encoding::CompatibilityError: incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string)
We started using strip_attributes in our project and found this runtime error when we try to strip a binary column. In PostgreSQL the type is called BYTEA.
Thank you for writing this gem!