Class: Sunabamail::Messages::TextsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/sunabamail/messages/texts_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



2
3
4
5
6
# File 'app/controllers/sunabamail/messages/texts_controller.rb', line 2

def show
  send_data @message.mail.text_part.body.to_s.force_encoding(@message.mail.charset),
    type: "text/plain",
    disposition: "inline"
end