diff options
author | Miles Egan <milesegan@gmail.com> | 2010-07-11 10:43:41 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-07-13 08:30:08 +0200 |
commit | d2fae5f78efd7123b9ce633933f77cbe0e0711a9 (patch) | |
tree | fe5fdeeb32bcd18aaf3a5e53ef9b975312518b49 /actionpack/lib/action_view | |
parent | b520d602ffb85f3816f4407ff9dd5c7721a2da7d (diff) | |
download | rails-d2fae5f78efd7123b9ce633933f77cbe0e0711a9.tar.gz rails-d2fae5f78efd7123b9ce633933f77cbe0e0711a9.tar.bz2 rails-d2fae5f78efd7123b9ce633933f77cbe0e0711a9.zip |
remove size attribute from tag generated by file_field helper [#5084 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index 6302491c2a..711c455ded 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -676,7 +676,7 @@ module ActionView # # => <input type="file" id="attachment_file" name="attachment[file]" class="file_input" /> # def file_field(object_name, method, options = {}) - InstanceTag.new(object_name, method, self, options.delete(:object)).to_input_field_tag("file", options) + InstanceTag.new(object_name, method, self, options.delete(:object)).to_input_field_tag("file", options.update({:size => nil})) end # Returns a textarea opening and closing tag set tailored for accessing a specified attribute (identified by +method+) |