Permalink
Browse files

Eliminate warning by initializing nil formats

  • Loading branch information...
1 parent 90be803 commit be664392c030a2a0241616be764725f0e66d872b @jeremy jeremy committed Nov 10, 2009
Showing with 6 additions and 0 deletions.
  1. +6 −0 actionpack/lib/abstract_controller/rendering_controller.rb
@@ -12,6 +12,12 @@ module RenderingController
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:

0 comments on commit be66439

Please sign in to comment.