myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2894] trunk/vendor/plugins/white_list_formatted_


From: noreply
Subject: [myexperiment-hackers] [2894] trunk/vendor/plugins/white_list_formatted_content/init.rb: Fixed stack error when including an email address in a message
Date: Mon, 9 Jan 2012 09:30:57 -0500 (EST)

Revision
2894
Author
fbacall
Date
2012-01-09 09:30:56 -0500 (Mon, 09 Jan 2012)

Log Message

Fixed stack error when including an email address in a message

Modified Paths

Diff

Modified: trunk/vendor/plugins/white_list_formatted_content/init.rb (2893 => 2894)


--- trunk/vendor/plugins/white_list_formatted_content/init.rb	2012-01-09 11:18:41 UTC (rev 2893)
+++ trunk/vendor/plugins/white_list_formatted_content/init.rb	2012-01-09 14:30:56 UTC (rev 2894)
@@ -1,7 +1,7 @@
 ActiveRecord::Base.class_eval do
-  include ActionView::Helpers::TagHelper, ActionView::Helpers::TextHelper, WhiteListHelper
+  include ActionView::Helpers::TagHelper, ActionView::Helpers::TextHelper, WhiteListHelper, ActionView::Helpers::UrlHelper
   def self.format_attribute(attr_name)
-    class << self; include ActionView::Helpers::TagHelper, ActionView::Helpers::TextHelper, WhiteListHelper; end
+    class << self; include ActionView::Helpers::TagHelper, ActionView::Helpers::TextHelper, WhiteListHelper, ActionView::Helpers::UrlHelper; end
     define_method(:body)       { read_attribute attr_name }
     define_method(:body_html)  { read_attribute "#{attr_name}_html" }
     define_method(:body_html=) { |value| write_attribute "#{attr_name}_html", value }

reply via email to

[Prev in Thread] Current Thread [Next in Thread]