From 6b7c6e088f8a3488da7268779f51378be8266aa4 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 19 Feb 2005 00:01:36 +0000 Subject: Fixed textilize for RedCloth3 to keep doing hardbreaks git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@673 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_view/helpers/text_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb index 5002291cf2..50d700f64a 100644 --- a/actionpack/lib/action_view/helpers/text_helper.rb +++ b/actionpack/lib/action_view/helpers/text_helper.rb @@ -65,6 +65,7 @@ module ActionView begin require "redcloth" + class RedCloth; def hard_breaks() true end; end # Returns the text with all the Textile codes turned into HTML-tags. # This method is only available if RedCloth can be required. -- cgit v1.2.3