diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-14 02:00:04 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-18 11:33:41 -0800 |
commit | 4403dfac6ce876c7ffb7a450b2249864c7a17cb7 (patch) | |
tree | f91daf3e9a91ade652352ad25c07706d7934c3c2 /activesupport/lib | |
parent | e1385be025263fad6d339010d42fe553d1de64af (diff) | |
download | rails-4403dfac6ce876c7ffb7a450b2249864c7a17cb7.tar.gz rails-4403dfac6ce876c7ffb7a450b2249864c7a17cb7.tar.bz2 rails-4403dfac6ce876c7ffb7a450b2249864c7a17cb7.zip |
Check whether another lib has implemented ruby 1.9 string interp syntax
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/interpolation.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/interpolation.rb b/activesupport/lib/active_support/core_ext/string/interpolation.rb index 41a061c1a4..2048d35091 100644 --- a/activesupport/lib/active_support/core_ext/string/interpolation.rb +++ b/activesupport/lib/active_support/core_ext/string/interpolation.rb @@ -5,7 +5,7 @@ You may redistribute it and/or modify it under the same license terms as Ruby. =end -if RUBY_VERSION < '1.9' +if RUBY_VERSION < '1.9' && !"".respond_to?(:interpolate_without_ruby_19_syntax) # KeyError is raised by String#% when the string contains a named placeholder # that is not contained in the given arguments hash. Ruby 1.9 includes and |