aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-01-04 22:11:35 +0100
committerJosé Valim <jose.valim@gmail.com>2010-01-04 23:05:28 +0100
commit562a00ba16746bf36b7d8b327fabae3dabfdb122 (patch)
treee4a60c26265c47569b66ee1726926a1cd305d0d2 /actionpack/lib
parentbd729344a7ac747cccaeed983d435fc36c905683 (diff)
downloadrails-562a00ba16746bf36b7d8b327fabae3dabfdb122.tar.gz
rails-562a00ba16746bf36b7d8b327fabae3dabfdb122.tar.bz2
rails-562a00ba16746bf36b7d8b327fabae3dabfdb122.zip
@_formats initialization should be AbstractController::Base.
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/abstract_controller/base.rb5
-rw-r--r--actionpack/lib/abstract_controller/rendering.rb6
-rw-r--r--actionpack/lib/action_dispatch/middleware/show_exceptions.rb2
3 files changed, 6 insertions, 7 deletions
diff --git a/actionpack/lib/abstract_controller/base.rb b/actionpack/lib/abstract_controller/base.rb
index a6889d5d01..48725ad82a 100644
--- a/actionpack/lib/abstract_controller/base.rb
+++ b/actionpack/lib/abstract_controller/base.rb
@@ -86,6 +86,11 @@ module AbstractController
abstract!
+ # Initialize controller with nil formats.
+ def initialize #:nodoc:
+ @_formats = nil
+ end
+
# Calls the action going through the entire action dispatch stack.
#
# The actual method that is called is determined by calling
diff --git a/actionpack/lib/abstract_controller/rendering.rb b/actionpack/lib/abstract_controller/rendering.rb
index 332d86b089..d57136dbb8 100644
--- a/actionpack/lib/abstract_controller/rendering.rb
+++ b/actionpack/lib/abstract_controller/rendering.rb
@@ -17,12 +17,6 @@ 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:
diff --git a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
index af356707c6..10f04dcdf6 100644
--- a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
+++ b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
@@ -14,7 +14,7 @@ module ActionDispatch
# ExceptionNotifier.deliver_exception(start, payload)
# end
#
- # The payload is a hash which has to pairs:
+ # The payload is a hash which has two pairs:
#
# * :env - Contains the rack env for the given request;
# * :exception - The exception raised;