aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/rendering.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-08-26 13:51:28 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-08-26 13:51:28 -0700
commitfa09bf44db5592d003a59729cf3089b8630e8de6 (patch)
treec1d40df4d369c54669c8ef3ff5446da7d0991f16 /actionview/lib/action_view/rendering.rb
parentd47438745e34d75e03347b54b604b71b7a92c3ac (diff)
downloadrails-fa09bf44db5592d003a59729cf3089b8630e8de6.tar.gz
rails-fa09bf44db5592d003a59729cf3089b8630e8de6.tar.bz2
rails-fa09bf44db5592d003a59729cf3089b8630e8de6.zip
stop passing the options hash to `_process_format`
We don't need to pass the full hash just to pull one value out. It's better to just pass the value that the method needs to know about so that we can abstract it away from "options"
Diffstat (limited to 'actionview/lib/action_view/rendering.rb')
-rw-r--r--actionview/lib/action_view/rendering.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/rendering.rb b/actionview/lib/action_view/rendering.rb
index 86a80a5421..f63c397c5b 100644
--- a/actionview/lib/action_view/rendering.rb
+++ b/actionview/lib/action_view/rendering.rb
@@ -104,7 +104,7 @@ module ActionView
end
# Assign the rendered format to look up context.
- def _process_format(format, options = {}) #:nodoc:
+ def _process_format(format, plain = false) #:nodoc:
super
lookup_context.formats = [format.to_sym]
lookup_context.rendered_format = lookup_context.formats.first