diff options
author | José Valim and Mikel Lindsaar <pair@programming.com> | 2010-01-23 10:29:22 +0100 |
---|---|---|
committer | José Valim and Mikel Lindsaar <pair@programming.com> | 2010-01-23 10:29:22 +0100 |
commit | 502028a32bfa46ad18337d2a69f03e8b5dec3c4a (patch) | |
tree | f833f741c9516735d8333c589bebc2ae253c60ae /actionpack/lib/abstract_controller | |
parent | 5c3ef8c17dba23d000d301467b1a620811c940b6 (diff) | |
download | rails-502028a32bfa46ad18337d2a69f03e8b5dec3c4a.tar.gz rails-502028a32bfa46ad18337d2a69f03e8b5dec3c4a.tar.bz2 rails-502028a32bfa46ad18337d2a69f03e8b5dec3c4a.zip |
Move double render check out of AbstractController.
Diffstat (limited to 'actionpack/lib/abstract_controller')
-rw-r--r-- | actionpack/lib/abstract_controller/rendering.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/actionpack/lib/abstract_controller/rendering.rb b/actionpack/lib/abstract_controller/rendering.rb index a168b1b4c5..1dec3f2c3e 100644 --- a/actionpack/lib/abstract_controller/rendering.rb +++ b/actionpack/lib/abstract_controller/rendering.rb @@ -41,10 +41,6 @@ module AbstractController # Mostly abstracts the fact that calling render twice is a DoubleRenderError. # Delegates render_to_body and sticks the result in self.response_body. def render(*args, &block) - if response_body - raise AbstractController::DoubleRenderError - end - options = _normalize_options(*args, &block) self.response_body = render_to_body(options) end |