Skip to content

Commit

Permalink
rails71: zeitwerk の自動読み込みチェックに失敗する
Browse files Browse the repository at this point in the history
@see:https://railsguides.jp/classic_to_zeitwerk_howto.html#zeitwerk-check
runner や ircbot 関係のファイルや定義が自動読み込みの期待に反してしまう
  • Loading branch information
koi-chan committed Jan 16, 2024
1 parent b28c854 commit e6c3040
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/initializers/zeitwerk.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
"lib/rails_runner.rb",
"lib/ircs"
].each do |ignore|
Rails.autoloaders.main.ignore("#{Rails.root}/#{ignore}")
end

0 comments on commit e6c3040

Please sign in to comment.