Class: ThinkingSphinx::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/thinking_sphinx/railtie.rb

Instance Method Summary collapse

Instance Method Details

#zeitwerk?Boolean

Returns:

  • (Boolean)


32
33
34
35
36
37
# File 'lib/thinking_sphinx/railtie.rb', line 32

def zeitwerk?
  return true if ActiveSupport::VERSION::MAJOR >= 7
  return false if ActiveSupport::VERSION::MAJOR <= 5

  Rails.application.config.autoloader == :zeitwerk
end