Added that ActionController::Base now does helper :all instead of relying on the default ApplicationController in Rails to do it [DHH]

This commit is contained in:
David Heinemeier Hansson 2010-01-03 21:32:02 -05:00
parent 3e6e3e90ef
commit 090d12b49b
3 changed files with 4 additions and 1 deletions

@ -1,5 +1,7 @@
*Edge*
* Added that ActionController::Base now does helper :all instead of relying on the default ApplicationController in Rails to do it [DHH]
* Added ActionDispatch::Request#authorization to access the http authentication header regardless of its proxy hiding [DHH]
* Added :alert, :notice, and :flash as options to ActionController::Base#redirect_to that'll automatically set the proper flash before the redirection [DHH]. Examples:

@ -6,6 +6,8 @@ class Base < Metal
include AbstractController::Layouts
include ActionController::Helpers
helper :all # By default, all helpers should be included
include ActionController::HideActions
include ActionController::UrlFor
include ActionController::Redirecting

@ -2,7 +2,6 @@
# Likewise, all the methods added will be available for all controllers.
class ApplicationController < ActionController::Base
helper :all
protect_from_forgery
filter_parameter_logging :password
end