Mercurial > zeropaste
changeset 83:ae360c3b0bb0
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
author | Edho Arief <edho@myconan.net> |
---|---|
date | Mon, 15 Oct 2012 03:45:18 -0700 |
parents | 1a2dee3b05b2 |
children | a9b68e36302e |
files | config/environments/development.rb |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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