aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/abstract_controller
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-08-26 16:17:29 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-08-26 16:17:29 -0700
commit446b6855dc88715315ce1ea15c25d1e821f8e598 (patch)
treebac578f973b59bf983a58bc610b51d19b288c8d1 /actionpack/lib/abstract_controller
parent3b8395a8825962b7ddbcb43a24334e5a5994ffde (diff)
downloadrails-446b6855dc88715315ce1ea15c25d1e821f8e598.tar.gz
rails-446b6855dc88715315ce1ea15c25d1e821f8e598.tar.bz2
rails-446b6855dc88715315ce1ea15c25d1e821f8e598.zip
remove useless code
If AV::Rendering is mixed in, then `rendered_format` will be calculated based on the current `lookup_context`, but calling `_process_format` will set the `rendered_format` back on to the same lookup context where we got the information in the first place! Instead of getting information from an object, then setting the same information back on to that object, lets just do nothing instead!
Diffstat (limited to 'actionpack/lib/abstract_controller')
-rw-r--r--actionpack/lib/abstract_controller/rendering.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/actionpack/lib/abstract_controller/rendering.rb b/actionpack/lib/abstract_controller/rendering.rb
index 765db74b2b..0a28c9aea1 100644
--- a/actionpack/lib/abstract_controller/rendering.rb
+++ b/actionpack/lib/abstract_controller/rendering.rb
@@ -23,7 +23,6 @@ module AbstractController
def render(*args, &block)
options = _normalize_render(*args, &block)
self.response_body = render_to_body(options)
- _process_format(rendered_format) if rendered_format
if options[:plain]
_set_content_type Mime::TEXT.to_s
else