1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Not ants were harmed! 🐜

This commit is contained in:
Mario Uher 2017-02-14 12:05:21 +01:00 committed by GitHub
parent b9661c786a
commit 3f79ee4862

View file

@ -260,7 +260,7 @@ class Module
# end
#
# The target can be anything callable within the object. E.g. instance
# variables, methods, constants ant the likes.
# variables, methods, constants and the likes.
def delegate_missing_to(target)
target = target.to_s
target = "self.#{target}" if DELEGATION_RESERVED_METHOD_NAMES.include?(target)