mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
@_formats initialization should be AbstractController::Base.
This commit is contained in:
@@ -86,6 +86,11 @@ module AbstractController
|
||||
|
||||
abstract!
|
||||
|
||||
# Initialize controller with nil formats.
|
||||
def initialize #:nodoc:
|
||||
@_formats = nil
|
||||
end
|
||||
|
||||
# Calls the action going through the entire action dispatch stack.
|
||||
#
|
||||
# The actual method that is called is determined by calling
|
||||
|
||||
@@ -17,12 +17,6 @@ module AbstractController
|
||||
self._view_paths ||= ActionView::PathSet.new
|
||||
end
|
||||
|
||||
# Initialize controller with nil formats.
|
||||
def initialize(*) #:nodoc:
|
||||
@_formats = nil
|
||||
super
|
||||
end
|
||||
|
||||
# An instance of a view class. The default view class is ActionView::Base
|
||||
#
|
||||
# The view class must have the following methods:
|
||||
|
||||
@@ -14,7 +14,7 @@ module ActionDispatch
|
||||
# ExceptionNotifier.deliver_exception(start, payload)
|
||||
# end
|
||||
#
|
||||
# The payload is a hash which has to pairs:
|
||||
# The payload is a hash which has two pairs:
|
||||
#
|
||||
# * :env - Contains the rack env for the given request;
|
||||
# * :exception - The exception raised;
|
||||
|
||||
Reference in New Issue
Block a user