Title: [761] trunk/activerecord-jdbc/lib/jdbc_adapter.rb: Foo.
Revision
761
Author
olabini
Date
2007-10-04 18:22:40 -0400 (Thu, 04 Oct 2007)

Log Message

Foo. I'm slightly more stupid sometimes.

Modified Paths


Diff

Modified: trunk/activerecord-jdbc/lib/jdbc_adapter.rb (760 => 761)


--- trunk/activerecord-jdbc/lib/jdbc_adapter.rb	2007-10-04 22:21:24 UTC (rev 760)
+++ trunk/activerecord-jdbc/lib/jdbc_adapter.rb	2007-10-04 22:22:40 UTC (rev 761)
@@ -21,7 +21,7 @@
   end
   if defined?(RAILS_ROOT)
     to_file = File.expand_path(File.join(RAILS_ROOT, 'lib', 'tasks', 'jdbc_databases.rake'))
-    from_file = File.expand_path(File.join(__FILE__, 'tasks', 'jdbc_databases.rake'))
+    from_file = File.expand_path(File.join(File.dirname(__FILE__), 'tasks', 'jdbc_databases.rake'))
     if !File.exist?(to_file) || (File.mtime(to_file) < File.mtime(from_file))
       require 'fileutils'
       FileUtils.cp from_file, to_file, :verbose => true
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel

Reply via email to