lib/auto_html.rb in auto_html-1.3.6 vs lib/auto_html.rb in auto_html-1.3.7

- old
+ new

@@ -4,6 +4,8 @@ Dir["#{File.dirname(__FILE__) + '/auto_html/filters'}/**/*"].each do |filter| require "#{filter}" end -ActiveRecord::Base.send :include, AutoHtmlFor +if defined?(ActiveRecord::Base) + ActiveRecord::Base.send :include, AutoHtmlFor +end