auto_strip_attributes 2.1.0
AutoStripAttributes helps to remove unnecessary whitespaces from ActiveRecord or ActiveModel attributes. It's good for removing accidental spaces from user inputs. It works by adding a before_validation hook to the record. It has option to set empty strings to nil or to remove extra spaces inside the string.
Gemfile:
=
安装:
=
Runtime 依赖 (1):
activerecord
>= 3.0