jcnetdev-validates_as_email_address 1.1 → 1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/validates_as_email_address.rb +1 -1
- metadata +2 -2
@@ -71,7 +71,7 @@ module PluginAWeek #:nodoc:
|
|
71
71
|
|
72
72
|
# Add length validation
|
73
73
|
length_configuration = configuration.reject {|key, value| !EMAIL_LENGTH_OPTIONS.include?(key)}
|
74
|
-
length_configuration.reverse_merge!(:within => 3..320)
|
74
|
+
length_configuration.reverse_merge!(:within => 3..320, :allow_blank => true)
|
75
75
|
validates_length_of attr_names, length_configuration
|
76
76
|
end
|
77
77
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jcnetdev-validates_as_email_address
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: "1.
|
4
|
+
version: "1.2"
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Pfeifer
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-08-15 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|