aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-04-15 09:11:46 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-04-15 09:11:46 -0700
commita82303e184303a527f30d21d6238df1b919a9620 (patch)
tree0f8e5bb5639427b4d4e1a11b9c669c3b3bc67626
parentc78da9aed9453bf2c933392e7ae7831f3d2ef73e (diff)
parenta8466b58b2ea478cbae5b5f853032d3f08aae07a (diff)
downloadrails-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.rb2
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