RubyGems
npm
Organizations
Log in
Sign up
RubyGems
kaptcha
Versions diffs
0.0.3.7 → 0.0.3.8
kaptcha 0.0.3.7 → 0.0.3.8
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
data/lib/core/kaptcha.rb
+4
-0
metadata
+1
-1
data/lib/core/kaptcha.rb
CHANGED
@@ -40,6 +40,10 @@ module Captcha
40
40
super(params, &block)
41
41
end
42
42
43
+
def after_initialize
44
+
initialize_kaptcha unless captcha_desc || human_captcha_desc
45
+
end
46
+
43
47
def validate
44
48
unless captcha_form_result == captcha_code
45
49
initialize_kaptcha
metadata
CHANGED
@@ -1,7 +1,7 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: kaptcha
3
3
version: !ruby/object:Gem::Version
4
-
version: 0.0.3.
7
4
+
version: 0.0.3.
8
5
5
prerelease:
6
6
platform: ruby
7
7
authors: