Skip to content

Commit

Permalink
Update mandrill to use new format param names
Browse files Browse the repository at this point in the history
  • Loading branch information
BDQ committed Mar 21, 2014
1 parent bf42341 commit a21e0bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.swp
*.swo
config/deploy.rb
.bundle/
2 changes: 1 addition & 1 deletion mandrill_endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class MandrillEndpoint < EndpointBase::Sinatra::Base
# create Mandrill request
#
request_body = {
key: @config['mandrill.api_key'],
key: @config['mandrill_api_key'],
template_name: template,
message: {
from_email: from_addr,
Expand Down
2 changes: 1 addition & 1 deletion spec/mandrill_endpoint_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
let(:payload) {
'{"request_id": "12e12341523e449c3000001",
"parameters": {
"mandrill.api_key":"abc123"},
"mandrill_api_key":"abc123"},
"email": {
"to": "[email protected]",
"from": "[email protected]",
Expand Down

0 comments on commit a21e0bf

Please sign in to comment.