activerecord-import/lib/ar-extensions/import/base.rb
Zach Dennis 3523138a7a * Added basic import support for PostgreSQL.
* Requiring database adapter is now "require 'ar-extensions/import/<adapter_name>" so it won't conflict with previous versions of ar-extensions or other libraries extracted out of older ar-extensions, which "require 'ar-extensions'"
2010-04-08 20:57:10 -04:00

14 lines
388 B
Ruby

require "active_record"
require "active_record/version"
module ActiveRecord::Extensions
AdapterPath = File.join File.expand_path(File.dirname(__FILE__)), "/../active_record/adapters"
def self.require_adapter(adapter)
require File.join(AdapterPath,"/#{adapter}_adapter")
end
end
require "ar-extensions/import"
require "ar-extensions/active_record/adapters/abstract_adapter"