captcha3 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/captcha3.rb +0 -6
- data/lib/captcha3/version.rb +1 -1
- metadata +3 -3
data/lib/captcha3.rb
CHANGED
@@ -5,10 +5,4 @@ require "captcha3/image_generator"
|
|
5
5
|
module Captcha3
|
6
6
|
require 'captcha3/railtie' if defined?(Rails)
|
7
7
|
ActionController::Base.send(:include, ValidateCaptcha)
|
8
|
-
if defined?(Rails)
|
9
|
-
environment = File.open("#{Rails.root}/config/environment.rb", "a")
|
10
|
-
salt = SecureRandom.base64(32).tr("+/=", "xyz")
|
11
|
-
environment.puts("CAPTCHA_SALT = #{salt}")
|
12
|
-
environment.close
|
13
|
-
end
|
14
8
|
end
|
data/lib/captcha3/version.rb
CHANGED
metadata
CHANGED