返回榜单

rmm5t / strip_attributes

:hocho: 一个 ActiveModel 扩展功能,在验证前会自动去除首尾空白字符。如果属性为空,则将其值设为 nil。

仓库 Star
651总榜 #52,462
Fork
59
最近推送
1 个月前更新
仓库创建
2008 年创建
应用与完整系统通用RubyMIT · 宽松,可直接商用
查看源码官网

用途与标签

项目原文 · GitHub
: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.

Star 走势

65165265211-06 · 65110-0810-1310-1810-2310-2811-0211-06

首次收录 2026-11-06采集时间 2026-11-06 07:39 UTC数据来源许可证原文

介绍根据项目公开资料整理,未经实际测试。 · GitHub 仓库 Star,不是独立使用人数 · 商用三档依据许可证元数据自动分类;具体义务需结合实际使用方式核对。未知不等于禁止商用。