lib/auto_html.rb in marcosinger-auto_html-1.3.5 vs lib/auto_html.rb in marcosinger-auto_html-1.3.6
- old
+ new
@@ -4,8 +4,17 @@
Dir["#{File.dirname(__FILE__) + '/auto_html/filters'}/**/*"].each do |filter|
require "#{filter}"
end
-if defined? ActiveRecord::Base
+# if defined? ActiveRecord::Base
+# ActiveRecord::Base.send :include, AutoHtmlFor
+# end
+
+# if rails
+if defined?(ActiveRecord::Base)
ActiveRecord::Base.send :include, AutoHtmlFor
+
+ module ActionView::Helpers::TextHelper
+ include AutoHtml
+ end
end
\ No newline at end of file