Permalink
Browse files

Move nl2br method define class.

  • Loading branch information...
yalab committed Nov 18, 2011
1 parent d6e03de commit bcf700b499161e448129de1afaeab19a8a5d3591
Showing with 3 additions and 5 deletions.
  1. +3 −0 app/helpers/application_helper.rb
  2. +0 −5 lib/ext/action_view/helpers/raw_output_helper.rb
@@ -1,2 +1,5 @@
module ApplicationHelper
+ def nl2br(stringish)
+ html_escape(stringish).gsub(/\n/, '<br>').html_safe
+ end
end
@@ -1,5 +0,0 @@
-module ActionView::Helpers::OutputSafetyHelper
- def nl2br(stringish)
- html_escape(stringish).gsub(/\n/, '<br>').html_safe
- end
-end

0 comments on commit bcf700b

Please sign in to comment.