Skip to content

Instantly share code, notes, and snippets.

@efalcao
Created August 27, 2009 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save efalcao/176566 to your computer and use it in GitHub Desktop.
Save efalcao/176566 to your computer and use it in GitHub Desktop.
# in a config/initializers/sanitizer.rb add the following lines:
ActiveRecord::Base.send(:include, ActionView::Helpers::SanitizeHelper)
ActiveRecord::Base.send(:extend, ActionView::Helpers::SanitizeHelper::ClassMethods)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment