method

find_preferred_part

Importance_0
v4.2.1 - Show latest stable - 0 notes - Class: MailersController
find_preferred_part(*formats) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/rails/mailers_controller.rb, line 56
    def find_preferred_part(*formats)
      if @email.multipart?
        formats.each do |format|
          return find_part(format) if @email.parts.any?{ |p| p.mime_type == format }
        end
      else
        @email
      end
    end
Register or log in to add new notes.