Sha256: 4999c75ad113f50a7d4235058231553825dcf339e2e9c3a233903c088863fabb
Contents?: true
Size: 621 Bytes
Versions: 8
Compression:
Stored size: 621 Bytes
Contents
class Hancock::RegistrationsController < Devise::RegistrationsController prepend_before_action :check_recaptcha, only: [:create] private def check_recaptcha if Hancock.config.recaptcha_support and (!Rails.env.development? or Hancock.config.captcha_on_development) if verify_recaptcha true else self.resource = resource_class.new sign_up_params self.resource.valid? @recaptcha_error = "Вы робот?".freeze respond_with_navigational(resource) { render :new } end else true end end include Hancock::Decorators::Registrations end
Version data entries
8 entries across 8 versions & 1 rubygems