diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-10 14:13:54 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-10 14:13:54 -0800 |
commit | be664392c030a2a0241616be764725f0e66d872b (patch) | |
tree | 511290abc5b93421bd73f539cda17cdcad086a13 /actionpack/lib/abstract_controller/rendering_controller.rb | |
parent | 90be80361f26d717f9842170315dd8659f35429d (diff) | |
download | rails-be664392c030a2a0241616be764725f0e66d872b.tar.gz rails-be664392c030a2a0241616be764725f0e66d872b.tar.bz2 rails-be664392c030a2a0241616be764725f0e66d872b.zip |
Eliminate warning by initializing nil formats
Diffstat (limited to 'actionpack/lib/abstract_controller/rendering_controller.rb')
-rw-r--r-- | actionpack/lib/abstract_controller/rendering_controller.rb | 6 |
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: |