1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Inline anemic method

This commit is contained in:
David Heinemeier Hansson 2018-09-27 17:58:45 -07:00
parent 087cbf12f4
commit 83a44867c7

View file

@ -21,10 +21,7 @@ class Rails::Conductor::ActionMailroom::InboundEmailsController < Rails::Conduct
end
def create_inbound_email(mail)
ActionMailroom::InboundEmail.create! raw_email: new_raw_email(mail), message_id: mail.message_id
end
def new_raw_email(mail)
{ io: StringIO.new(new_mail.to_s), filename: 'inbound.eml', content_type: 'message/rfc822', identify: false }
ActionMailroom::InboundEmail.create! raw_email: \
{ io: StringIO.new(mail.to_s), filename: 'inbound.eml', content_type: 'message/rfc822', identify: false }
end
end