Permalink
Browse files

Fixed textilize for RedCloth3 to keep doing hardbreaks

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@673 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent ec03a60 commit 6b7c6e088f8a3488da7268779f51378be8266aa4 @dhh dhh committed Feb 19, 2005
Showing with 1 addition and 0 deletions.
  1. +1 −0 actionpack/lib/action_view/helpers/text_helper.rb
@@ -65,6 +65,7 @@ def pluralize(count, singular, plural = nil)
begin
require "redcloth"
+ class RedCloth; def hard_breaks() true end; end
# Returns the text with all the Textile codes turned into HTML-tags.
# <i>This method is only available if RedCloth can be required</i>.

0 comments on commit 6b7c6e0

Please sign in to comment.