Sha256: 1230f85d2270714abeb9e027774433f823cf6b95e3e8a431ba00e2e8ea7d962d
Contents?: true
Size: 483 Bytes
Versions: 5
Compression:
Stored size: 483 Bytes
Contents
module Captcher class CaptchasController < ActionController::Base include Captcher::CaptchaAware def show render_captcha(load_captcha(session)) end def reload render_captcha(reload_captcha(session)) end alias refresh reload def confirm if confirm_captcha?(session, params[:confirmation]) render json: { success: true }, status: 200 else render json: { success: false }, status: 422 end end end end
Version data entries
5 entries across 5 versions & 1 rubygems