Sha256: a7317031f059e6bcbadb53a4a2eaa042193ba449953e6d72fb8b9b5f8e19797f

Contents?: true

Size: 334 Bytes

Versions: 9

Compression:

Stored size: 334 Bytes

Contents

# coding: utf-8
class RailsCaptcha::CaptchaController < RailsCaptcha::ApplicationController
  acts_as_captcha

  def captcha
    reset_captcha
    text = session[:captcha].blank? ? "" : session[:captcha]
    render :text => text
  end

  def load_captcha
    reset_captcha
    respond_to do |format|
      format.js
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails_captcha-0.0.10 app/controllers/rails_captcha/captcha_controller.rb
rails_captcha-0.0.8 app/controllers/rails_captcha/captcha_controller.rb
rails_captcha-0.0.7 app/controllers/rails_captcha/captcha_controller.rb
rails_captcha-0.0.6 app/controllers/rails_captcha/captcha_controller.rb
rails_captcha-0.0.5 app/controllers/rails_captcha/captcha_controller.rb
rails_captcha-0.0.4 app/controllers/rails_captcha/captcha_controller.rb
rails_captcha-0.0.3 app/controllers/rails_captcha/captcha_controller.rb
rails_captcha-0.0.2 app/controllers/rails_captcha/captcha_controller.rb
rails_captcha-0.0.1 app/controllers/rails_captcha/captcha_controller.rb