Skip to content
Browse files

Concernify SanitizeHelper and TextHelper so including TextHelper corr…

…ectly include SanitizeHelper and extends its ClassMethods
  • Loading branch information...
1 parent bd1cf94 commit 32d840d98a34d0b8ad13f2d727b4756f9c94d4ca @wycats wycats committed Aug 4, 2010
View
1 actionpack/lib/action_view/helpers/sanitize_helper.rb
@@ -7,6 +7,7 @@ module Helpers #:nodoc:
# The SanitizeHelper module provides a set of methods for scrubbing text of undesired HTML elements.
# These helper methods extend Action View making them callable within your template files.
module SanitizeHelper
+ extend ActiveSupport::Concern
# This +sanitize+ helper will html encode all tags and strip all attributes that
# aren't specifically allowed.
#
View
3 actionpack/lib/action_view/helpers/text_helper.rb
@@ -10,6 +10,9 @@ module Helpers #:nodoc:
# your views. These helper methods extend Action View making them callable
# within your template files.
module TextHelper
+ extend ActiveSupport::Concern
+
+ include SanitizeHelper
# The preferred method of outputting text in your views is to use the
# <%= "text" %> eRuby syntax. The regular _puts_ and _print_ methods
# do not operate as expected in an eRuby code block. If you absolutely must

0 comments on commit 32d840d

Please sign in to comment.
Something went wrong with that request. Please try again.