url_format 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/url_format/url_format_validator.rb +1 -1
- data/lib/url_format/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c553211f808197b8910c54132572fb2713766a27
|
4
|
+
data.tar.gz: 32344bd21e3393e7df21f5ad0c745564ccebaa7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cfc469b1170baafbea1f8d729ed28d4347e61cf7db621d9e4f90456eb8f1a955bb0ccb3265191a424ccfb24f018a9df2fe4d50543c89771a0ff844cba227470
|
7
|
+
data.tar.gz: a60ff9bc7200221a97eedd9f1e733724bdf4845c5f563a822d79c8f60ddb2c0a6f83109273b91be102bd610569de69c2c67eff47b4f7e77a164ae0e1f61c4151
|
@@ -9,7 +9,7 @@ class UrlFormatValidator < ActiveModel::EachValidator
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def format_value(value)
|
12
|
-
|
12
|
+
record.send("#{attribute}=","http://#{value}") unless value =~ /\Ahttps?:\/\//
|
13
13
|
end
|
14
14
|
|
15
15
|
# Thanks to Dean Perry and Ryan Bates
|
data/lib/url_format/version.rb
CHANGED