bootstrap3_form_builder 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc3951fe0fc7fda12703f114b3ff5ac5f11615a3
|
4
|
+
data.tar.gz: fa9e5ee5ca9ca2e78a53ab5ff339e7b136558043
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 638c2133d75e8569307b773b61c7529c71069a18c8b2eddd3aa82395207ed4206af2f26dab4f58ad3e0ba58c0bed976b1b1f04e16a307be08740f15488d9502d
|
7
|
+
data.tar.gz: f38e42d88da03b7900ecf280e061a32e8bd94718b4ca00d8785426d2d200b030b15b2a6c3713d97c6a079fb9d2dc447151f23f3aa9ef4d127be47aa3eab6ba53
|
@@ -75,7 +75,7 @@ Generates form fields that work with Twitter Bootstrap 3.
|
|
75
75
|
|
76
76
|
format_validator = (validators.select { |v| v.class == ActiveModel::Validations::FormatValidator}).first
|
77
77
|
|
78
|
-
if format_validator && allow_pattern && !method_name.include?('email')
|
78
|
+
if format_validator && allow_pattern && !method_name.to_s.include?('email')
|
79
79
|
options[:pattern] = format_validator.options[:with].source.html_safe
|
80
80
|
options[:title] = format_validator.options[:message] || "#{options[:title]} is not a valid format"
|
81
81
|
end
|