3523138a7a
* 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'"
14 lines
388 B
Ruby
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"
|