Skip to content
This repository has been archived by the owner on May 1, 2022. It is now read-only.

Commit

Permalink
More agnostic requires
Browse files Browse the repository at this point in the history
Shouldn't be requiring rubygems explicitly.  Rails 3 needs explicit active_support feature requires.
  • Loading branch information
gtd committed Jul 3, 2011
1 parent 3babb23 commit 6a26986
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/acts_as_sanitiled.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 6a26986

Please sign in to comment.