lib/voltron/upload/action_view/field.rb in voltron-upload-0.2.4 vs lib/voltron/upload/action_view/field.rb in voltron-upload-0.2.5

- old
+ new

@@ -38,18 +38,18 @@ def prepare #add_preview_class if has_preview_template? options.merge!({ - ':multiple' => multiple?, - ':files' => files.to_json, - ':cached' => caches.to_json, - ':removed' => removals.to_json, - ':options' => preview_options.to_json, - 'accept' => accept, - 'preview' => preview_name, - 'param' => input_name, - 'url' => polymorphic_path(@model.class, action: :upload) + ':multiple' => multiple?, + ':files' => files.to_json, + ':cached' => caches.to_json, + ':removed' => removals.to_json, + ':upload_options' => preview_options.to_json, + 'accept' => accept, + 'preview' => preview_name, + 'param' => input_name, + 'url' => polymorphic_path(@model.class, action: :upload) }) #options[:data] ||= {} #options[:data].merge!({ # upload_files: files, \ No newline at end of file