Skip to content

Commit

Permalink
Little fixes in mailer deliver guide (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
vyper authored and Trung Lê committed Jun 8, 2016
1 parent fa95416 commit c833db0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/guides/mailers/delivery.md
Expand Up @@ -98,8 +98,7 @@ require 'lib/mailers/mandrill_delivery_method'
Hanami::Mailer.configure do
# ...
delivery do
production MandrillDeliveryMethod
api_key: ENV['MANDRILL_API_KEY']
production MandrillDeliveryMethod, api_key: ENV['MANDRILL_API_KEY']
end
end.load!
```
Expand All @@ -118,7 +117,7 @@ class MandrillDeliveryMethod

private

def send(raw_message)
def send(message)
gateway.messages.send message
end

Expand Down

0 comments on commit c833db0

Please sign in to comment.