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

@ -86,6 +86,11 @@ def controller_path
abstract! abstract!
# Initialize controller with nil formats.
def initialize #:nodoc:
@_formats = nil
end
# Calls the action going through the entire action dispatch stack. # Calls the action going through the entire action dispatch stack.
# #
# The actual method that is called is determined by calling # The actual method that is called is determined by calling

@ -17,12 +17,6 @@ module Rendering
self._view_paths ||= ActionView::PathSet.new self._view_paths ||= ActionView::PathSet.new
end 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 # An instance of a view class. The default view class is ActionView::Base
# #
# The view class must have the following methods: # The view class must have the following methods:

@ -14,7 +14,7 @@ module ActionDispatch
# ExceptionNotifier.deliver_exception(start, payload) # ExceptionNotifier.deliver_exception(start, payload)
# end # 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; # * :env - Contains the rack env for the given request;
# * :exception - The exception raised; # * :exception - The exception raised;