Skip to content
代码片段 群组 项目
提交 d119d3d1 编辑于 作者: Thong Kuah's avatar Thong Kuah 提交者: James Lopez
浏览文件

Align UrlValidator to validate_url gem implementation.

Renamed UrlValidator to AddressableUrlValidator to avoid 'url:' naming collision with ActiveModel::Validations::UrlValidator in 'validates' statement.
Make use of the options attribute of the parent class ActiveModel::EachValidator.
Add more options: allow_nil, allow_blank, message.
Renamed 'protocols' option to 'schemes' to match the option naming from UrlValidator.
上级 79bf4bda
No related branches found
No related tags found
加载中
显示
292 个添加68 个删除
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册