diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-04-15 09:11:46 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-04-15 09:11:46 -0700 |
commit | a82303e184303a527f30d21d6238df1b919a9620 (patch) | |
tree | 0f8e5bb5639427b4d4e1a11b9c669c3b3bc67626 | |
parent | c78da9aed9453bf2c933392e7ae7831f3d2ef73e (diff) | |
parent | a8466b58b2ea478cbae5b5f853032d3f08aae07a (diff) | |
download | rails-a82303e184303a527f30d21d6238df1b919a9620.tar.gz rails-a82303e184303a527f30d21d6238df1b919a9620.tar.bz2 rails-a82303e184303a527f30d21d6238df1b919a9620.zip |
Merge pull request #10220 from vipulnsward/interpolate_on_string
interpolate instead of string concat
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/filters.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/filters.rb b/activesupport/lib/active_support/core_ext/string/filters.rb index a1b3f79748..c62bb41416 100644 --- a/activesupport/lib/active_support/core_ext/string/filters.rb +++ b/activesupport/lib/active_support/core_ext/string/filters.rb @@ -50,6 +50,6 @@ class String length_with_room_for_omission end - self[0...stop] + options[:omission] + "#{self[0...stop]}#{options[:omission]}" end end |