Eliminate warning by initializing nil formats

This commit is contained in:
Jeremy Kemper 2009-11-10 14:13:54 -08:00
parent 90be80361f
commit be664392c0
1 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,12 @@ 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: