aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/module
diff options
context:
space:
mode:
authorMario Uher <uher.mario@gmail.com>2017-02-14 12:05:21 +0100
committerGitHub <noreply@github.com>2017-02-14 12:05:21 +0100
commit3f79ee48622af1ae2b4e9eb66cf21da5b08b6b3a (patch)
tree9e7c2408706c074badec11e475beef1c13579fe8 /activesupport/lib/active_support/core_ext/module
parentb9661c786a6dd5322659af35944731e82118baa7 (diff)
downloadrails-3f79ee48622af1ae2b4e9eb66cf21da5b08b6b3a.tar.gz
rails-3f79ee48622af1ae2b4e9eb66cf21da5b08b6b3a.tar.bz2
rails-3f79ee48622af1ae2b4e9eb66cf21da5b08b6b3a.zip
Not ants were harmed! 🐜
Diffstat (limited to 'activesupport/lib/active_support/core_ext/module')
-rw-r--r--activesupport/lib/active_support/core_ext/module/delegation.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/module/delegation.rb b/activesupport/lib/active_support/core_ext/module/delegation.rb
index d82758e40d..cdf27f49ad 100644
--- a/activesupport/lib/active_support/core_ext/module/delegation.rb
+++ b/activesupport/lib/active_support/core_ext/module/delegation.rb
@@ -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)