Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
interpolate instead of string concat
  • Loading branch information
vipulnsward committed Apr 15, 2013
1 parent c78da9a commit a8466b5
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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.