app/models/inputs/asset_box.rb in effective_assets-1.7.5 vs app/models/inputs/asset_box.rb in effective_assets-1.7.6
- old
+ new
@@ -89,9 +89,10 @@
:partial => 'asset_box_input/uploader',
:locals => {
:uid => @options[:uid],
:limit => @options[:limit],
:disabled => @options[:disabled],
+ :required => (@options[:required] == true && attachments.length == 0),
:file_types => @options[:file_types],
:progress_bar_partial => @options[:progress_bar_partial],
:drop_files => @options[:uploader_drop_files],
:drop_files_help_text => @options[:drop_files_help_text],
:aws_acl => @options[:aws_acl],