Class: RuCaptcha::CaptchaController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- RuCaptcha::CaptchaController
- Defined in:
- app/controllers/ru_captcha/captcha_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
3 4 5 6 7 8 |
# File 'app/controllers/ru_captcha/captcha_controller.rb', line 3 def index headers['Cache-Control'] = 'no-cache, no-store, max-age=0, must-revalidate' headers['Pragma'] = 'no-cache' send_data generate_rucaptcha, disposition: 'inline', type: 'image/png' end |