Fix declare_workers_not_supported docs to do correct respond_to? check

Fixes #4448
This commit is contained in:
Andrew Cholakian 2016-01-11 10:25:06 -06:00
parent 9e57d05de1
commit 00f876f323

View file

@ -281,7 +281,7 @@ class LogStash::{pluginclass}::{pluginnamecap} < LogStash::{pluginclass}::Base
# File would only cause problems.
#
# respond_to? check needed for backwards compatibility with < 2.2 Logstashes
declare_workers_not_supported! if self.respond_to?(:workers_not_supported!)
declare_workers_not_supported! if self.respond_to?(:declare_workers_not_supported!)
# If declared threadsafe logstash will only ever create one
# instance of this plugin per pipeline.