Sha256: 262d1594167cc0cd211f79381d4fec5eb1633626e547c6f61211c96e92e960fb

Contents?: true

Size: 304 Bytes

Versions: 7

Compression:

Stored size: 304 Bytes

Contents

module EasyCaptcha
  # captcha controller
  #   get :captcha => EasyCaptcha::Controller
  class Controller < ActionController::Base
    # captcha action send the generated image to browser
    def captcha
      send_data generate_captcha, :disposition => 'inline', :type => 'image/png'
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
easy_captcha-0.2.5 lib/easy_captcha/controller.rb
easy_captcha-0.2.4 lib/easy_captcha/controller.rb
easy_captcha-0.2.3 lib/easy_captcha/controller.rb
easy_captcha-0.2.2 lib/easy_captcha/controller.rb
easy_captcha-0.2.1 lib/easy_captcha/controller.rb
easy_captcha-0.2.0 lib/easy_captcha/controller.rb
easy_captcha-0.1.9 lib/easy_captcha/controller.rb