comparison config/environments/development.rb @ 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 4aa8194a1733
children a2d87bcd39fb
comparison
equal deleted inserted replaced
82:1a2dee3b05b2 83:ae360c3b0bb0
25 # Raise exception on mass assignment protection for Active Record models 25 # Raise exception on mass assignment protection for Active Record models
26 config.active_record.mass_assignment_sanitizer = :strict 26 config.active_record.mass_assignment_sanitizer = :strict
27 27
28 # Log the query plan for queries taking more than this (works 28 # Log the query plan for queries taking more than this (works
29 # with SQLite, MySQL, and PostgreSQL) 29 # with SQLite, MySQL, and PostgreSQL)
30 config.active_record.auto_explain_threshold_in_seconds = 0.5 30 config.active_record.auto_explain_threshold_in_seconds = 0.5 unless RUBY_PLATFORM == 'java'
31 31
32 # Do not compress assets 32 # Do not compress assets
33 config.assets.compress = false 33 config.assets.compress = false
34 34
35 # Expands the lines which load the assets 35 # Expands the lines which load the assets