From a8466b58b2ea478cbae5b5f853032d3f08aae07a Mon Sep 17 00:00:00 2001 From: Vipul A M Date: Mon, 15 Apr 2013 20:21:06 +0530 Subject: interpolate instead of string concat --- activesupport/lib/active_support/core_ext/string/filters.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport') 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 -- cgit v1.2.3