Permalink
Browse files

interpolate instead of string concat

  • Loading branch information...
1 parent c78da9a commit a8466b58b2ea478cbae5b5f853032d3f08aae07a @vipulnsward vipulnsward 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 a8466b5

Please sign in to comment.