aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2013-04-15 20:21:06 +0530
committerVipul A M <vipulnsward@gmail.com>2013-04-15 20:21:06 +0530
commita8466b58b2ea478cbae5b5f853032d3f08aae07a (patch)
tree0f8e5bb5639427b4d4e1a11b9c669c3b3bc67626 /activesupport
parentc78da9aed9453bf2c933392e7ae7831f3d2ef73e (diff)
downloadrails-a8466b58b2ea478cbae5b5f853032d3f08aae07a.tar.gz
rails-a8466b58b2ea478cbae5b5f853032d3f08aae07a.tar.bz2
rails-a8466b58b2ea478cbae5b5f853032d3f08aae07a.zip
interpolate instead of string concat
Diffstat (limited to 'activesupport')
-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