app/models/inputs/asset_box.rb in effective_assets-1.4.0 vs app/models/inputs/asset_box.rb in effective_assets-1.4.1

- old
+ new

@@ -149,10 +149,10 @@ :dialog => false, :dialog_url => @template.effective_assets.effective_assets_path, :disabled => false, :file_types => [:any], :aws_acl => EffectiveAssets.aws_acl, - :btn_label => "Upload files..." + :btn_label => "Upload..." }.merge(opts).tap do |options| options[:method] = method.to_s options[:box] = method.to_s.pluralize options[:attachable_id] ||= (@object.try(:id) rescue nil) options[:attachable_type] ||= @object.class.name.titleize.gsub(" ", "_").gsub('/', '_').downcase