diff options
author | eileencodes <eileencodes@gmail.com> | 2016-06-21 17:23:08 -0400 |
---|---|---|
committer | eileencodes <eileencodes@gmail.com> | 2016-06-21 17:35:03 -0400 |
commit | 9d441579247b28979539d117b730548afa12fefb (patch) | |
tree | eedfd208fa05b0ae89ee6906db0488dc51ea0478 /actionview/lib/action_view/helpers/tags/file_field.rb | |
parent | 1de0df86695f8fa2eeae6b8b46f9b53decfa6ec8 (diff) | |
download | rails-9d441579247b28979539d117b730548afa12fefb.tar.gz rails-9d441579247b28979539d117b730548afa12fefb.tar.bz2 rails-9d441579247b28979539d117b730548afa12fefb.zip |
Revert "Merge pull request #17973 from maurogeorge/file_field_hidden_field"
The reason we are reverting this commit is because it created breaking
changes for file upload gems. For more information see discussion here:
https://github.com/rails/rails/issues/17947#issuecomment-225154294
This reverts commit c455817804e4df64c46c17a0cdec0e5a1ca5ba2e, reversing
changes made to 8b3cd74b8a09ef85a43d7631bb062a9ec7f57227.
Conflicts:
actionview/CHANGELOG.md
actionview/lib/action_view/helpers/form_helper.rb
Diffstat (limited to 'actionview/lib/action_view/helpers/tags/file_field.rb')
-rw-r--r-- | actionview/lib/action_view/helpers/tags/file_field.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/actionview/lib/action_view/helpers/tags/file_field.rb b/actionview/lib/action_view/helpers/tags/file_field.rb index e6a1d9c62d..476b820d84 100644 --- a/actionview/lib/action_view/helpers/tags/file_field.rb +++ b/actionview/lib/action_view/helpers/tags/file_field.rb @@ -2,21 +2,6 @@ module ActionView module Helpers module Tags # :nodoc: class FileField < TextField # :nodoc: - - def render - options = @options.stringify_keys - - if options.fetch("include_hidden", true) - add_default_name_and_id(options) - options[:type] = "file" - tag("input", name: options["name"], type: "hidden", value: "") + tag("input", options) - else - options.delete("include_hidden") - @options = options - - super - end - end end end end |