rails/rails — pull request #7189 by GCorbel (2012-07-29 09:06:19+00:00)
Title: Add a separation option for the excerpt function

The separation option enable to keep entire words, lines or anything.
To split by line, like github, we can set the separation option as \n.
To split by word, like google, we can set the separation option as " ".
The radius option represent the number of lines or words we want to
have in the result.
The default behaviour is the same. If we don't set the separation
option, it split the text any where.