Rename error class, add ::Mcaptcha

Renamed the error class and added a new
include line ending with ::Mcaptcha to see
if that solves the unitialized constant error
Auth::CaptchaConcern::Mcaptcha since we've *definitely*
included the Mcaptcha::Adapters::ViewMethods
This commit is contained in:
Leni Kadali 2025-02-04 15:37:25 +03:00
parent 0d1b62d35d
commit d4d85ccbee
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
class Auth::ConfirmationsController < Devise::ConfirmationsController
include Auth::CaptchaConcern
include Auth::CaptchaConcern::Mcaptcha
layout 'auth'

View File

@ -17,7 +17,7 @@ module Mcaptcha
class McaptchaError < StandardError
end
class VerifyError < HcaptchaError
class VerifyError < McaptchaError
end
# Gives access to the current Configuration.