diff --git a/lib/acts_as_sanitiled.rb b/lib/acts_as_sanitiled.rb index 3a45c40..938b625 100644 --- a/lib/acts_as_sanitiled.rb +++ b/lib/acts_as_sanitiled.rb @@ -1,7 +1,12 @@ -require 'rubygems' require 'sanitize' require 'RedCloth' -require 'active_support' +require 'rails' + +if Rails::VERSION::MAJOR <= 2 + require 'active_support' +else + require 'active_support/core_ext/module/attribute_accessors' +end module ActsAsSanitiled #:nodoc: all mattr_accessor :default_redcloth_options