mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Eliminate warning by initializing nil formats
This commit is contained in:
parent
90be80361f
commit
be664392c0
1 changed files with 6 additions and 0 deletions
|
@ -12,6 +12,12 @@ module AbstractController
|
||||||
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:
|
||||||
|
|
Loading…
Reference in a new issue