aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-03-28 13:20:07 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-03-28 13:21:56 -0300
commite06b4fab8e77f36e534804780eb80eae46587a4a (patch)
tree86d88341aa24c7d07ba709e3050f3c381068859a /activerecord/lib/active_record
parent75d0a81ffe48030bb8d6fa79f70f5b368f748b7c (diff)
downloadrails-e06b4fab8e77f36e534804780eb80eae46587a4a.tar.gz
rails-e06b4fab8e77f36e534804780eb80eae46587a4a.tar.bz2
rails-e06b4fab8e77f36e534804780eb80eae46587a4a.zip
Removing explain support warning from the Railtie
This is causing a regression since the Active Record Railtie is trying to connect to the development database in the application boot. See https://github.com/rails/rails/pull/6197#issuecomment-15199273
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/railtie.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/activerecord/lib/active_record/railtie.rb b/activerecord/lib/active_record/railtie.rb
index 055d27d85c..13b7c6e214 100644
--- a/activerecord/lib/active_record/railtie.rb
+++ b/activerecord/lib/active_record/railtie.rb
@@ -83,13 +83,6 @@ module ActiveRecord
end
end
- initializer "active_record.validate_explain_support" do |app|
- if app.config.active_record[:auto_explain_threshold_in_seconds] &&
- !ActiveRecord::Base.connection.supports_explain?
- warn "auto_explain_threshold_in_seconds is set but will be ignored because your adapter does not support this feature. Please unset the configuration to avoid this warning."
- end
- end
-
# Expose database runtime to controller for logging.
initializer "active_record.log_runtime" do |app|
require "active_record/railties/controller_runtime"