lib/auto_html.rb in auto_html-1.3.7 vs lib/auto_html.rb in auto_html-1.4.0
- old
+ new
@@ -4,8 +4,13 @@
Dir["#{File.dirname(__FILE__) + '/auto_html/filters'}/**/*"].each do |filter|
require "#{filter}"
end
+# if rails
if defined?(ActiveRecord::Base)
ActiveRecord::Base.send :include, AutoHtmlFor
+
+ module ActionView::Helpers::TextHelper
+ include AutoHtml
+ end
end