diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-19 00:01:36 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-19 00:01:36 +0000 |
commit | 6b7c6e088f8a3488da7268779f51378be8266aa4 (patch) | |
tree | 64187e66167bf215b06061d5f9d672d665839801 /actionpack/lib/action_view/helpers/text_helper.rb | |
parent | ec03a601811587dd4265667aadd50c101c23b116 (diff) | |
download | rails-6b7c6e088f8a3488da7268779f51378be8266aa4.tar.gz rails-6b7c6e088f8a3488da7268779f51378be8266aa4.tar.bz2 rails-6b7c6e088f8a3488da7268779f51378be8266aa4.zip |
Fixed textilize for RedCloth3 to keep doing hardbreaks
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@673 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers/text_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/text_helper.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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. # <i>This method is only available if RedCloth can be required</i>. |