Title: [760] trunk/activerecord-jdbc/lib/jdbc_adapter.rb: Foo.
- Revision
- 760
- Author
- olabini
- Date
- 2007-10-04 18:21:24 -0400 (Thu, 04 Oct 2007)
Log Message
Foo. I'm slightly stupid sometimes.
Modified Paths
Diff
Modified: trunk/activerecord-jdbc/lib/jdbc_adapter.rb (759 => 760)
--- trunk/activerecord-jdbc/lib/jdbc_adapter.rb 2007-10-01 08:56:56 UTC (rev 759)
+++ trunk/activerecord-jdbc/lib/jdbc_adapter.rb 2007-10-04 22:21:24 UTC (rev 760)
@@ -22,7 +22,7 @@
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'))
- if !File.exists(to_file) || (File.mtime(to_file) < File.mtime(from_file))
+ if !File.exist?(to_file) || (File.mtime(to_file) < File.mtime(from_file))
require 'fileutils'
FileUtils.cp from_file, to_file, :verbose => true
end
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel