diff --git a/lib/bullet_train_oauth_scaffolder_support.rb b/lib/bullet_train_oauth_scaffolder_support.rb index b18113f98..f1d76275f 100644 --- a/lib/bullet_train_oauth_scaffolder_support.rb +++ b/lib/bullet_train_oauth_scaffolder_support.rb @@ -8,3 +8,13 @@ def any_oauth_enabled? # 🚅 super scaffolding will insert new oauth provider checks above this line. ].select(&:present?).any? end + +# Starting in Rails 7.2 the line in config/application.rb that requires this file +# started to throw this error: +# Minitest::UnexpectedError: NameError: uninitialized constant BulletTrainOauthScaffolderSupport +# We define an empty module here to make that error go away. +# We really need to get around to fixing whatever problem makes it necessary to have this file in the first place. +# We define `any_oauth_enabled?` in the main `bullet_train` gem. Why is that not sufficient? +# https://github.com/bullet-train-co/bullet_train-core/blob/00fdeb275888c88c9a396714c5a7acebbef2e56f/bullet_train/lib/bullet_train.rb#L135-L141 +module BulletTrainOauthScaffolderSupport +end