diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-07-01 21:59:43 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-07-01 22:18:49 +0200 |
commit | dc9ff7bb7cb8e33aa6ddc6c9960f3d6394ec6987 (patch) | |
tree | b0d836576bc63d36aa6d2e7ea58650da05696ce4 /activerecord | |
parent | cfa35c55bb38b27af305ad21408e181bc3cd739e (diff) | |
download | rails-dc9ff7bb7cb8e33aa6ddc6c9960f3d6394ec6987.tar.gz rails-dc9ff7bb7cb8e33aa6ddc6c9960f3d6394ec6987.tar.bz2 rails-dc9ff7bb7cb8e33aa6ddc6c9960f3d6394ec6987.zip |
remove auto-explain-config deprecation warning
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/CHANGELOG.md | 4 | ||||
-rw-r--r-- | activerecord/lib/active_record/railtie.rb | 11 |
2 files changed, 4 insertions, 11 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index abc134b11c..f8ef03aebb 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,7 @@ +* Remove deprecation warning for `auto_explain_threshold_in_seconds`. + + *Yves Senn* + * Remove deprecated `:distinct` option from `Relation#count`. *Yves Senn* diff --git a/activerecord/lib/active_record/railtie.rb b/activerecord/lib/active_record/railtie.rb index afb0be7b74..4b455594d4 100644 --- a/activerecord/lib/active_record/railtie.rb +++ b/activerecord/lib/active_record/railtie.rb @@ -135,17 +135,6 @@ module ActiveRecord EOF end - unless app.config.active_record.delete(:auto_explain_threshold_in_seconds).nil? - ActiveSupport::Deprecation.warn <<-EOF.strip_heredoc, [] - The Active Record auto explain feature has been removed. - - To disable this message remove the `active_record.auto_explain_threshold_in_seconds` - option from the `config/environments/*.rb` config file. - - See http://guides.rubyonrails.org/4_0_release_notes.html for more information. - EOF - end - unless app.config.active_record.delete(:observers).nil? ActiveSupport::Deprecation.warn <<-EOF.strip_heredoc, [] Active Record Observers has been extracted out of Rails into a gem. |