Skip to content

Commit

Permalink
Merge pull request #1205 from anthonyshull/develop
Browse files Browse the repository at this point in the history
support rails 7
  • Loading branch information
pat authored Sep 18, 2021
2 parents 479a980 + 869010f commit 83785e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/thinking_sphinx/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ class ThinkingSphinx::Railtie < Rails::Railtie
require 'thinking_sphinx/active_record'
end

if ActiveSupport::VERSION::MAJOR > 5 &&
Rails.application.config.autoloader == :zeitwerk
if ActiveSupport::VERSION::MAJOR == 7 ||
(ActiveSupport::VERSION::MAJOR > 5 &&
Rails.application.config.autoloader == :zeitwerk)
ActiveSupport::Dependencies.autoload_paths.delete(
Rails.root.join("app", "indices").to_s
)
Expand Down

0 comments on commit 83785e0

Please sign in to comment.