Sha256: ac2d0627321a5b6397535e590f786d0052af058eadb4666d40453056a40bef15

Contents?: true

Size: 258 Bytes

Versions: 10

Compression:

Stored size: 258 Bytes

Contents

module EasyCaptcha
  # captcha 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

10 entries across 10 versions & 1 rubygems

Version Path
easy_captcha-0.5.1 lib/easy_captcha/controller.rb
easy_captcha-0.5.0 lib/easy_captcha/controller.rb
easy_captcha-0.4.7 lib/easy_captcha/controller.rb
easy_captcha-0.4.5 lib/easy_captcha/controller.rb
easy_captcha-0.4.4 lib/easy_captcha/controller.rb
easy_captcha-0.4.3 lib/easy_captcha/controller.rb
easy_captcha-0.4.2 lib/easy_captcha/controller.rb
easy_captcha-0.4.1 lib/easy_captcha/controller.rb
easy_captcha-0.4.0 lib/easy_captcha/controller.rb
easy_captcha-0.3.0 lib/easy_captcha/controller.rb