diff options
author | José Valim <jose.valim@gmail.com> | 2012-05-05 00:34:13 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-05-05 00:34:13 -0700 |
commit | d6e2c81cfe31a4c05adc50cd49fa265c5d3cd3e6 (patch) | |
tree | 6b16e0438bb5c0b2620c2b21fcbc652f510ca559 /activesupport/lib/active_support/multibyte/chars.rb | |
parent | 2ce5e4fa6c6f44eb0c5cbf812ca62aa03b802379 (diff) | |
parent | 14762dc5effbc7bb9ae94cb5af895a9a33512867 (diff) | |
download | rails-d6e2c81cfe31a4c05adc50cd49fa265c5d3cd3e6.tar.gz rails-d6e2c81cfe31a4c05adc50cd49fa265c5d3cd3e6.tar.bz2 rails-d6e2c81cfe31a4c05adc50cd49fa265c5d3cd3e6.zip |
Merge pull request #6169 from marcandre/respond_to_missing
Respond to missing
Diffstat (limited to 'activesupport/lib/active_support/multibyte/chars.rb')
-rw-r--r-- | activesupport/lib/active_support/multibyte/chars.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/multibyte/chars.rb b/activesupport/lib/active_support/multibyte/chars.rb index 9a748dfa60..b20c980f36 100644 --- a/activesupport/lib/active_support/multibyte/chars.rb +++ b/activesupport/lib/active_support/multibyte/chars.rb @@ -62,8 +62,8 @@ module ActiveSupport #:nodoc: # Returns +true+ if _obj_ responds to the given method. Private methods are included in the search # only if the optional second parameter evaluates to +true+. - def respond_to?(method, include_private=false) - super || @wrapped_string.respond_to?(method, include_private) + def respond_to_missing?(method, include_private) + @wrapped_string.respond_to?(method, include_private) end # Returns +true+ when the proxy class can handle the string. Returns +false+ otherwise. |