method

attachments_for

rails latest stable - Class: Rails::MailersController

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

attachments_for(email)
public

No documentation available.

# File railties/lib/rails/mailers_controller.rb, line 101
    def attachments_for(email)
      email.all_parts.to_a.select(&:attachment?).index_by do |attachment|
        attachment.respond_to?(:original_filename) ? attachment.original_filename : attachment.filename
      end
    end