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:
parent
3e6e3e90ef
commit
090d12b49b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user