Permalink
Browse files

Merge pull request #10220 from vipulnsward/interpolate_on_string

interpolate instead of string concat
  • Loading branch information...
2 parents c78da9a + a8466b5 commit a82303e184303a527f30d21d6238df1b919a9620 @rafaelfranca rafaelfranca committed Apr 15, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/string/filters.rb
@@ -50,6 +50,6 @@ def truncate(truncate_at, options = {})
length_with_room_for_omission
end
- self[0...stop] + options[:omission]
+ "#{self[0...stop]}#{options[:omission]}"
end
end

0 comments on commit a82303e

Please sign in to comment.