From 8f91eeb93db6d4237164b7e147628e704136ff8d Mon Sep 17 00:00:00 2001 From: fallwith Date: Wed, 22 Jun 2011 16:01:33 -0700 Subject: [PATCH] Regexp.escape which is called by Gem.loaded_path? (/usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb) expects the path as a String, not a Pathname. Convert Pathnames to Strings prior to calling 'require' --- lib/activerecord-import/base.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/activerecord-import/base.rb b/lib/activerecord-import/base.rb index 5553e38..6c5e353 100644 --- a/lib/activerecord-import/base.rb +++ b/lib/activerecord-import/base.rb @@ -23,6 +23,6 @@ end this_dir = Pathname.new File.dirname(__FILE__) -require this_dir.join("import") -require this_dir.join("active_record/adapters/abstract_adapter") -require this_dir.join("synchronize") \ No newline at end of file +require this_dir.join("import").to_s +require this_dir.join("active_record/adapters/abstract_adapter").to_s +require this_dir.join("synchronize").to_s \ No newline at end of file