lib/auto_html.rb in auto_html-1.4.2 vs lib/auto_html.rb in auto_html-1.5.0
- old
+ new
@@ -5,12 +5,13 @@
Dir["#{File.dirname(__FILE__) + '/auto_html/filters'}/**/*"].each do |filter|
require "#{filter}"
end
# if rails
+require 'auto_html/railtie' if defined?(Rails::Railtie)
if defined?(ActiveRecord::Base)
ActiveRecord::Base.send :include, AutoHtmlFor
module ActionView::Helpers::TextHelper
include AutoHtml
end
-end
+end
\ No newline at end of file