diff options
author | kenta-s <knt01222@gmail.com> | 2017-01-01 20:00:27 +0900 |
---|---|---|
committer | kenta-s <knt01222@gmail.com> | 2017-01-20 06:45:24 +0900 |
commit | 430038dd520dd209135902ba9a0d2dccf0db9145 (patch) | |
tree | 1cb21303ee7b18add0c6605ba89b92be6c8e5545 /actionview/lib/action_view/template | |
parent | 190b82aee815175c407bf6978a100321df2249f0 (diff) | |
download | rails-430038dd520dd209135902ba9a0d2dccf0db9145.tar.gz rails-430038dd520dd209135902ba9a0d2dccf0db9145.tar.bz2 rails-430038dd520dd209135902ba9a0d2dccf0db9145.zip |
Remove unused argument `formats`
Diffstat (limited to 'actionview/lib/action_view/template')
-rw-r--r-- | actionview/lib/action_view/template/resolver.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/template/resolver.rb b/actionview/lib/action_view/template/resolver.rb index 9da13663d7..c049e8f402 100644 --- a/actionview/lib/action_view/template/resolver.rb +++ b/actionview/lib/action_view/template/resolver.rb @@ -226,7 +226,7 @@ module ActionView template_paths = reject_files_external_to_app(template_paths) unless outside_app_allowed template_paths.map do |template| - handler, format, variant = extract_handler_and_format_and_variant(template, formats) + handler, format, variant = extract_handler_and_format_and_variant(template) contents = File.binread(template) Template.new(contents, File.expand_path(template), handler, @@ -289,7 +289,7 @@ module ActionView # Extract handler, formats and variant from path. If a format cannot be found neither # from the path, or the handler, we should return the array of formats given # to the resolver. - def extract_handler_and_format_and_variant(path, default_formats) + def extract_handler_and_format_and_variant(path) pieces = File.basename(path).split(".".freeze) pieces.shift |