diff options
author | George Claghorn <george@basecamp.com> | 2018-10-18 16:31:38 -0400 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-10-18 16:31:38 -0400 |
commit | 4411095290f24ccb2e263c9534acfd19d081120f (patch) | |
tree | 76b6612d23a13d83e60fed2d6fecbef063f3b250 /app/controllers/action_mailbox/ingresses/mandrill | |
parent | 34b809ce6d6a73296bfbc9f9677f7fb04c218c49 (diff) | |
download | rails-4411095290f24ccb2e263c9534acfd19d081120f.tar.gz rails-4411095290f24ccb2e263c9534acfd19d081120f.tar.bz2 rails-4411095290f24ccb2e263c9534acfd19d081120f.zip |
Inline
Diffstat (limited to 'app/controllers/action_mailbox/ingresses/mandrill')
-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 |