10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/carrierwave_direct/jquery/action_view_extensions/form_helper.rb', line 10
def direct_upload_form_for(record, *args, &block)
options = args.
if options[:remote]
record.success_action_redirect = options[:remote]
html_options = {
:multipart => true
}.update(options[:html] || {})
form_for(
record,
*(args << options.merge(
:builder => CarrierWaveDirect::JQuery::FormBuilder,
:url => record.direct_fog_url,
:html => html_options,
:authenticity_token => false,
:include_id => false
)),
&block
)
else
super
end
end
|