diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-26 13:51:28 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-26 13:51:28 -0700 |
commit | fa09bf44db5592d003a59729cf3089b8630e8de6 (patch) | |
tree | c1d40df4d369c54669c8ef3ff5446da7d0991f16 /actionview/lib | |
parent | d47438745e34d75e03347b54b604b71b7a92c3ac (diff) | |
download | rails-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')
-rw-r--r-- | actionview/lib/action_view/rendering.rb | 2 |
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 |