/ Published in: Ruby

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# for JRuby, load JDBC adapter and all the .jar files in lib. if (RUBY_PLATFORM =~ /java/) require 'jdbc_adapter' Dir.foreach(File.join(RAILS_ROOT, 'lib')) do |file| if m = /([^\s]+)\.jar$/.match(file) require m[1] end end end
Comments
