diff --git a/config/initializers/statistics.rb b/config/initializers/statistics.rb index a266607445..9b35ac96c4 100644 --- a/config/initializers/statistics.rb +++ b/config/initializers/statistics.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +return unless defined?(Rails::Command::StatsCommand) + [ %w(AppLibs app/lib), %w(Policies app/policies),