Skip to content

Commit

Permalink
fix word_wrap eg output [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaydev committed May 17, 2012
1 parent a39d144 commit 612f7fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion actionpack/lib/action_view/helpers/text_helper.rb
Expand Up @@ -209,7 +209,9 @@ def pluralize(count, singular, plural = nil)
#
# You can still use <tt>word_wrap</tt> with the old API that accepts the
# +line_width+ as its optional second parameter:
# word_wrap('Once upon a time', 8) # => Once upon\na time
#
# word_wrap('Once upon a time', 8)
# # => Once\nupon a\ntime
def word_wrap(text, *args)
options = args.extract_options!
unless args.blank?
Expand Down

0 comments on commit 612f7fe

Please sign in to comment.