# HG changeset patch # User Edho Arief # Date 1350297918 25200 # Node ID ae360c3b0bb0a9794fcf189c419ac0d01de41af5 # Parent 1a2dee3b05b2f1d661fed3992469aad04e209564 Disable explain when using jruby because it's not supported. The patch for this support exist but for some reason still not included in latest release of the jdbc adapter. Reference: https://github.com/jruby/activerecord-jdbc-adapter/pull/206 diff -r 1a2dee3b05b2 -r ae360c3b0bb0 config/environments/development.rb --- a/config/environments/development.rb Mon Oct 15 03:44:00 2012 -0700 +++ b/config/environments/development.rb Mon Oct 15 03:45:18 2012 -0700 @@ -27,7 +27,7 @@ # Log the query plan for queries taking more than this (works # with SQLite, MySQL, and PostgreSQL) - config.active_record.auto_explain_threshold_in_seconds = 0.5 + config.active_record.auto_explain_threshold_in_seconds = 0.5 unless RUBY_PLATFORM == 'java' # Do not compress assets config.assets.compress = false