Skip to content

Commit

Permalink
Make auto_html work without activerecord.
Browse files Browse the repository at this point in the history
  • Loading branch information
ebeigarts committed Apr 10, 2011
1 parent b80debc commit affbd4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/auto_html.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@
require "#{filter}"
end

ActiveRecord::Base.send :include, AutoHtmlFor
if defined?(ActiveRecord::Base)
ActiveRecord::Base.send :include, AutoHtmlFor
end

0 comments on commit affbd4e

Please sign in to comment.