Sha256: fbd9d79a62df88eb9fa5839d39e8a8eba6a8fda51e138e9db8247a28ef546f17
Contents?: true
Size: 303 Bytes
Versions: 2
Compression:
Stored size: 303 Bytes
Contents
require 'uuid' module DalliCaptcha module Controller def generate_captcha_key if session[:captcha_key].blank? uuid = UUID.new session[:captcha_key] = uuid.generate.gsub("-", "").hex end end end end ActionController::Base.send :include, DalliCaptcha::Controller
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dalli_captcha-0.1.0 | lib/dalli_captcha/controller.rb |
dalli_captcha-0.0.3 | lib/dalli_captcha/controller.rb |