Collection: change missing_method message to be a bit clearer.

Fixes #4234. Fixes #4199.
This commit is contained in:
Parker Moore 2015-12-11 14:07:34 -08:00
parent dfa3f8b33a
commit b94800361b
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ module Jekyll
# Override of method_missing to check in @data for the key.
def method_missing(method, *args, &blck)
if docs.respond_to?(method.to_sym)
Jekyll.logger.warn "Deprecation:", "Collection##{method} should be called on the #docs array directly."
Jekyll.logger.warn "Deprecation:", "#{label}.#{method} should be changed to #{label}.docs.#{method}."
Jekyll.logger.warn "", "Called by #{caller.first}."
docs.public_send(method.to_sym, *args, &blck)
else