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: 0def3912ebf8fa022c85cb998cb5354c1ab42680
4
- data.tar.gz: d6e0b235d0a4df385ce85cd12334382a227aacb9
3
+ metadata.gz: bc3951fe0fc7fda12703f114b3ff5ac5f11615a3
4
+ data.tar.gz: fa9e5ee5ca9ca2e78a53ab5ff339e7b136558043
5
5
  SHA512:
6
- metadata.gz: ca34b41fceb1dbde32b6700ae127f5f3cde1f7197c08e9e411b918d8e145d9402c1cf1b9a7a4587bc66f41da5ab373895dad75b4959b384f994cc746c90ed5ec
7
- data.tar.gz: ba99e247ccfffd028c952529a3575931f961436bc26a7137629f1d2b320ccba64fc5f710f5b011297409dcc1a1e6f0830675530c543a65ebe0e989643c37723f
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
@@ -1,3 +1,3 @@
1
1
  module Bootstrap3FormBuilder
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap3_form_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary Wright