Skip to content

Commit

Permalink
Fix a test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jagthedrummer committed Oct 18, 2024
1 parent 8a22f26 commit ae310dd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/bullet_train_oauth_scaffolder_support.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ae310dd

Please sign in to comment.