aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-11-10 14:13:54 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2009-11-10 14:13:54 -0800
commitbe664392c030a2a0241616be764725f0e66d872b (patch)
tree511290abc5b93421bd73f539cda17cdcad086a13
parent90be80361f26d717f9842170315dd8659f35429d (diff)
downloadrails-be664392c030a2a0241616be764725f0e66d872b.tar.gz
rails-be664392c030a2a0241616be764725f0e66d872b.tar.bz2
rails-be664392c030a2a0241616be764725f0e66d872b.zip
Eliminate warning by initializing nil formats
-rw-r--r--actionpack/lib/abstract_controller/rendering_controller.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/lib/abstract_controller/rendering_controller.rb b/actionpack/lib/abstract_controller/rendering_controller.rb
index 0aae2b18e9..7054b9cf26 100644
--- a/actionpack/lib/abstract_controller/rendering_controller.rb
+++ b/actionpack/lib/abstract_controller/rendering_controller.rb
@@ -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: