lib/logstasher.rb in logstasher-1.2.1 vs lib/logstasher.rb in logstasher-1.2.2
- old
+ new
@@ -130,10 +130,10 @@
def called_as_console?
defined?(Rails::Console) && true || false
end
def has_active_job?
- Rails::VERSION::MAJOR > 4 || (Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2)
+ defined?(ActiveJob)
end
def suppress_app_logs(config)
if configured_to_suppress_app_logs?(config)
require 'logstasher/rails_ext/rack/logger'