zero-captcha 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zero-captcha/form_tag_helper.rb +5 -5
- data/zero-captcha.gemspec +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: 32ca6d981dce7e6d0d1aedb7b3ea4d334c1dcbce
|
4
|
+
data.tar.gz: 134f7fe4f76a173cb2f3c244e0ea6a1603dd3efd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3972b53a08f9d071080b5d1cde2d1478fa913089b1210e9ec7ff22ffedab79244a5530e8d487b156a7ea04588e534ecfeb3d8d044d62c0097ec042d302bd8068
|
7
|
+
data.tar.gz: 00a5818fed16ac1c45865117ad333392dc51db689a078e9b65845a47ad14c8c07af7a0cafc75c566d05934746efeac272ded185bdf6bec88c20815ebfca2fcb0
|
@@ -2,9 +2,9 @@
|
|
2
2
|
module ActionView
|
3
3
|
module Helpers
|
4
4
|
module FormTagHelper
|
5
|
-
def
|
6
|
-
zero_captcha = options.delete(:zero_captcha)
|
7
|
-
html =
|
5
|
+
def form_tag_html_with_zero_captcha(options)
|
6
|
+
zero_captcha = options.delete(:zero_captcha) || options.delete('zero_captcha')
|
7
|
+
html = form_tag_html_without_zero_captcha(options)
|
8
8
|
if zero_captcha
|
9
9
|
captcha = "".respond_to?(:html_safe) ? zero_captcha_html.html_safe : zero_captcha
|
10
10
|
if block_given?
|
@@ -15,7 +15,7 @@ module ActionView
|
|
15
15
|
end
|
16
16
|
html
|
17
17
|
end
|
18
|
-
alias_method_chain :
|
18
|
+
alias_method_chain :form_tag_html, :zero_captcha
|
19
19
|
|
20
20
|
private
|
21
21
|
def zero_captcha_html
|
@@ -30,4 +30,4 @@ module ActionView
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
33
|
-
end
|
33
|
+
end
|
data/zero-captcha.gemspec
CHANGED