method

find_part

Importance_0
v4.1.8 - Show latest stable - 0 notes - Class: MailersController
find_part(format) 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 66
    def find_part(format)
      if @email.multipart?
        @email.parts.find{ |p| p.mime_type == format }
      elsif @email.mime_type == format
        @email
      end
    end
Register or log in to add new notes.