@_formats initialization should be AbstractController::Base.

This commit is contained in:
José Valim
2010-01-04 22:11:35 +01:00
parent bd729344a7
commit 562a00ba16
3 changed files with 6 additions and 7 deletions

View File

@@ -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

View File

@@ -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:

View File

@@ -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;