lib/logstasher.rb in logstasher-1.1.1 vs lib/logstasher.rb in logstasher-1.2.0
- old
+ new
@@ -1,10 +1,10 @@
require 'logstasher/version'
require 'logstasher/active_support/log_subscriber'
require 'logstasher/active_support/mailer_log_subscriber'
-require 'logstasher/active_record/log_subscriber'
-require 'logstasher/action_view/log_subscriber'
-require 'logstasher/active_job/log_subscriber'
+require 'logstasher/active_record/log_subscriber' if defined?(ActiveRecord)
+require 'logstasher/action_view/log_subscriber' if defined?(ActionView)
+require 'logstasher/active_job/log_subscriber' if defined?(ActiveJob)
require 'logstasher/rails_ext/action_controller/base'
require 'logstasher/custom_fields'
require 'request_store'
require 'active_support/core_ext/module/attribute_accessors'
require 'active_support/core_ext/string/inflections'