From 22a6079a20ae13dcb0ad6ddb3ee39a849e5e0928 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 9 Dec 2011 18:15:28 +0100 Subject: [PATCH] Make ActiveSupport::Benchmarkable a default module for ActionController::Base, so the #benchmark method is once again available in the controller context like it used to be *DHH* --- actionpack/CHANGELOG.md | 2 ++ actionpack/lib/action_controller/base.rb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index e00b4a64f1..761da8cb87 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -1,5 +1,7 @@ ## Rails 3.2.0 (unreleased) ## +* Make ActiveSupport::Benchmarkable a default module for ActionController::Base, so the #benchmark method is once again available in the controller context like it used to be *DHH* + * Deprecated implied layout lookup in controllers whose parent had a explicit layout set: class ApplicationController diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 98bfe72fef..335b4e8cb8 100644 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -208,6 +208,8 @@ def self.without_modules(*modules) HttpAuthentication::Digest::ControllerMethods, HttpAuthentication::Token::ControllerMethods, + ActiveSupport::Benchmarkable, + # Before callbacks should also be executed the earliest as possible, so # also include them at the bottom. AbstractController::Callbacks, -- GitLab