aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'config/initializers/email_address.rb')
-rw-r--r--config/initializers/email_address.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/initializers/email_address.rb b/config/initializers/email_address.rb
new file mode 100644
index 0000000..02e48cb
--- /dev/null
+++ b/config/initializers/email_address.rb
@@ -0,0 +1,9 @@
+require 'hobo_fields/email_address'
+
+class HoboFields::EmailAddress
+ def to_html_with_escape(xmldoctype = true)
+ ERB::Util.h to_html_without_escape xmldoctype
+ end
+
+ alias_method_chain :to_html, :escape
+end