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.