lib/dashing/configuration.rb in dashing-rails-2.5.0 vs lib/dashing/configuration.rb in dashing-rails-2.6.0
- old
+ new
@@ -51,13 +51,9 @@
end
private
def request_thread_count
- if defined?(::Puma) && ::Puma.respond_to?(:cli_config)
- ::Puma.cli_config.options.fetch(:max_threads, 5).to_i
- else
- 5
- end
+ Integer(ENV['RAILS_MAX_THREADS'] || 5)
end
end
end