Check for sibling Active Support first

This commit is contained in:
Jeremy Kemper 2009-05-02 15:16:12 -07:00
parent 3be3470fab
commit 945bf9c254
1 changed files with 3 additions and 8 deletions

View File

@ -21,15 +21,10 @@
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#++
begin
require 'active_support'
rescue LoadError
activesupport_path = "#{File.dirname(__FILE__)}/../../activesupport/lib"
if File.directory?(activesupport_path)
$:.unshift activesupport_path
require 'active_support'
end
"#{File.dirname(__FILE__)}/../../activesupport/lib".tap do |path|
$:.unshift(path) if File.directory?(path)
end
require 'active_support'
require 'active_support/core/all'
module ActiveRecord