Permalink
Browse files

fix nil data param

  • Loading branch information...
1 parent 8809a92 commit d161a346b45e1504b4e0efd184c8fe2e14ee9801 @pomartel pomartel committed Nov 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/s3_direct_upload/form_helper.rb
@@ -33,7 +33,7 @@ def form_options
data: {
post: @options[:post],
as: @options[:as]
- }.reverse_merge(@options[:data])
+ }.reverse_merge(@options[:data] || {})
}
end

0 comments on commit d161a34

Please sign in to comment.