Skip to content

Commit

Permalink
Remove indices from eager load paths.
Browse files Browse the repository at this point in the history
This is perhaps only an issue with the classic autoloader, but it makes sense for the change to happen either way. This fix hopefully resolves #1191 and #1195, and was possible due to debugging assistance from @atomical and @thebravoman.
  • Loading branch information
pat committed Jun 10, 2021
1 parent 18ea60d commit 02bbb50
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/thinking_sphinx/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ class ThinkingSphinx::Railtie < Rails::Railtie
Rails.root.join("app", "indices").to_s
)
end

Rails.application.config.eager_load_paths -= [
Rails.root.join("app", "indices").to_s
]
Rails.application.config.eager_load_paths.freeze
end
end

Expand Down

0 comments on commit 02bbb50

Please sign in to comment.