html5_validators 1.2.0 → 1.2.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: 53351810292bd43edac8e3b5ce7a32981d4bf2ea
4
- data.tar.gz: 2e86f48bbb046c3d2a586330991817bf59790442
3
+ metadata.gz: 8319ea0984eb251c4502993396dbe73647a0bb58
4
+ data.tar.gz: cccc1f09e688476c89396e54c79de9fcf68a046e
5
5
  SHA512:
6
- metadata.gz: f945e1ad923ebd7c2de76b926365d7c892e704e536c3d82bd7fe96f01fcc8fe8d84a5e84b5182f0e63362fb035ca3fc8fa347eaa778b240bc631e52bea95b172
7
- data.tar.gz: 201accfc19d6e505bbdb6a97a02fc9658c10be1e231c044b460ca89df1078ab767af2d2a7408aeb1c7400ca7645021ce0c76499815350d685c9ce8f988c957ca
6
+ metadata.gz: fbce3243954f598eef6c8815d37de9e95440aa5bd4e1e0d2eca758534e3f81f5c3c25f52bec31afa04257a2b102c4d02e114e56eac44a729e55fa89793e86eb9
7
+ data.tar.gz: e920c577a538f5a799fefb5011aa133943e70a945037efa489cbc207230507d1ee89d96feddbf612a7c14645c87ee4095bda3df1b349b9100070c6bff9bc3a4e
@@ -41,8 +41,8 @@ module ActionView
41
41
  inject_maxlength_field
42
42
 
43
43
  if object.class.ancestors.include?(ActiveModel::Validations) && (object.auto_html5_validation != false) && (object.class.auto_html5_validation != false)
44
- @options["max"] ||= @options["maxlength"] || @options[:maxlength] || object.class.attribute_max(@method_name)
45
- @options["min"] ||= @options["minlength"] || @options[:minlength] || object.class.attribute_min(@method_name)
44
+ @options["max"] ||= @options["max"] || @options[:max] || object.class.attribute_max(@method_name)
45
+ @options["min"] ||= @options["min"] || @options[:min] || object.class.attribute_min(@method_name)
46
46
  end
47
47
  render_without_html5_attributes
48
48
  end
@@ -1,3 +1,3 @@
1
1
  module Html5Validators
2
- VERSION = '1.2.0'
2
+ VERSION = '1.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html5_validators
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akira Matsuda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-10 00:00:00.000000000 Z
11
+ date: 2015-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-rails