diff options
author | Marc-Andre Lafortune <github@marc-andre.ca> | 2012-05-05 02:34:18 -0400 |
---|---|---|
committer | Marc-Andre Lafortune <github@marc-andre.ca> | 2012-05-05 02:44:58 -0400 |
commit | 9bda37474e2cd3db63102f6b63246ebc54011ad2 (patch) | |
tree | e39e3a235340722bf873d975a42ad3138a62ad4e /activesupport/lib/active_support | |
parent | 3ea70f985b1799c27b907724920e5615018e505d (diff) | |
download | rails-9bda37474e2cd3db63102f6b63246ebc54011ad2.tar.gz rails-9bda37474e2cd3db63102f6b63246ebc54011ad2.tar.bz2 rails-9bda37474e2cd3db63102f6b63246ebc54011ad2.zip |
Use respond_to_missing? for Chars
Diffstat (limited to 'activesupport/lib/active_support')
-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. |