Skip to content

Commit c651462

Browse files
authored
fix bug rails 7.2 update (#1090)
* intail commit * fix lint * Update devise.rb * auto include zeitwerk:check * Update ci.sh * fix error in the test
1 parent 31a8647 commit c651462

File tree

6 files changed

+6
-3
lines changed

6 files changed

+6
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,6 @@ yarn-debug.log*
5050

5151
# Ignore Jetbrains IDE files
5252
/.idea
53+
54+
# Ignore gemini-Cli files
55+
gemini.md

bin/ci.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ fi
2626
if [ "${TYPE}" = "spec" ] || [ "${TYPE}" = "" ]; then
2727
RAILS_ENV=test bundle exec rails db:create db:environment:set db:schema:load
2828
RAILS_ENV=test bundle exec rspec
29+
RAILS_ENV=test bin/rails zeitwerk:check
2930
fi

config/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Application < Rails::Application
1414
# Please, add to the `ignore` list any other `lib` subdirectories that do
1515
# not contain `.rb` files, or that should not be reloaded or eager loaded.
1616
# Common ones are `templates`, `generators`, or `middleware`, for example.
17-
config.autoload_lib(ignore: %w[assets tasks])
17+
config.autoload_lib(ignore: %w[assets tasks generators])
1818

1919
# Configuration for the application, engines, and railties goes here.
2020
#

config/initializers/devise.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
config.sign_out_via = :delete
99

1010
# ==> OmniAuth
11-
require 'omniauth_strategies'
11+
require_dependency Rails.root.join('config', 'initializers', 'omniauth_strategies', 'amber_oauth2.rb')
1212

1313
config.omniauth :amber_oauth2, Rails.application.config.x.amber_client_id,
1414
Rails.application.config.x.amber_client_secret

lib/omniauth_strategies.rb

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)