Skip to content

Commit

Permalink
fix: Hoist invisible_captcha require
Browse files Browse the repository at this point in the history
  • Loading branch information
julianrubisch committed Jun 30, 2023
1 parent c949c38 commit 0383b69
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module Registrations::ControllerBase
extend ActiveSupport::Concern

invisible_captcha only: :create

included do
invisible_captcha only: :create

def new
# We have to set the session here because Safari wouldn't save it on a redirect to this URL.
if params[:invitation_uuid]
Expand Down
6 changes: 6 additions & 0 deletions bullet_train/lib/bullet_train/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
rescue LoadError
end

begin
# And the same holds true for invisible_captcha
require "invisible_captcha"
rescue LoadError
end

module BulletTrain
class Engine < ::Rails::Engine
end
Expand Down

0 comments on commit 0383b69

Please sign in to comment.