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:
parent
087cbf12f4
commit
83a44867c7
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue