diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/action_mailbox/ingresses/mandrill/inbound_emails_controller.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/action_mailbox/ingresses/mandrill/inbound_emails_controller.rb b/app/controllers/action_mailbox/ingresses/mandrill/inbound_emails_controller.rb index 6ee2f5be54..afaf3df28e 100644 --- a/app/controllers/action_mailbox/ingresses/mandrill/inbound_emails_controller.rb +++ b/app/controllers/action_mailbox/ingresses/mandrill/inbound_emails_controller.rb @@ -11,9 +11,7 @@ class ActionMailbox::Ingresses::Mandrill::InboundEmailsController < ActionMailbo private def raw_emails - events.lazy. - select { |event| event["event"] == "inbound" }. - collect { |event| event.dig("msg", "raw_msg") } + events.select { |event| event["event"] == "inbound" }.collect { |event| event.dig("msg", "raw_msg") } end def events |