{"action":"opened","number":72,"pull_request":{"url":"https://api.github.com/repos/renz45/mandrill_mailer/pulls/72","id":28773559,"html_url":"https://github.com/renz45/mandrill_mailer/pull/72","diff_url":"https://github.com/renz45/mandrill_mailer/pull/72.diff","patch_url":"https://github.com/renz45/mandrill_mailer/pull/72.patch","issue_url":"https://api.github.com/repos/renz45/mandrill_mailer/issues/72","number":72,"state":"open","locked":false,"title":"Add support for default merge_vars","user":{"login":"olivierlacan","id":65950,"avatar_url":"https://avatars.githubusercontent.com/u/65950?v=3","gravatar_id":"","url":"https://api.github.com/users/olivierlacan","html_url":"https://github.com/olivierlacan","followers_url":"https://api.github.com/users/olivierlacan/followers","following_url":"https://api.github.com/users/olivierlacan/following{/other_user}","gists_url":"https://api.github.com/users/olivierlacan/gists{/gist_id}","starred_url":"https://api.github.com/users/olivierlacan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivierlacan/subscriptions","organizations_url":"https://api.github.com/users/olivierlacan/orgs","repos_url":"https://api.github.com/users/olivierlacan/repos","events_url":"https://api.github.com/users/olivierlacan/events{/privacy}","received_events_url":"https://api.github.com/users/olivierlacan/received_events","type":"User","site_admin":false},"body":"This may allow a default unsubscribe URL to be specified for all mailers for instance.\r\n\r\nWorks as follows:\r\n\r\n```ruby\r\ndefault from: 'support@codeschool.com',\r\n            from_name: 'Code School',\r\n            merge_vars: { 'FOO' => 'Bar' }\r\n```\r\n\r\nOne thing I want to explore later on is the idea of making the value of one of those default marge vars dynamic based on the current recipient.\r\n\r\nThis is a work in progress.","created_at":"2015-02-05T23:55:26Z","updated_at":"2015-02-05T23:55:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/renz45/mandrill_mailer/pulls/72/commits","review_comments_url":"https://api.github.com/repos/renz45/mandrill_mailer/pulls/72/comments","review_comment_url":"https://api.github.com/repos/renz45/mandrill_mailer/pulls/comments/{number}","comments_url":"https://api.github.com/repos/renz45/mandrill_mailer/issues/72/comments","statuses_url":"https://api.github.com/repos/renz45/mandrill_mailer/statuses/c97650806f10aadd873e777769af7755b1d9e76b","head":{"label":"olivierlacan:default-merge-vars","ref":"default-merge-vars","sha":"c97650806f10aadd873e777769af7755b1d9e76b","user":{"login":"olivierlacan","id":65950,"avatar_url":"https://avatars.githubusercontent.com/u/65950?v=3","gravatar_id":"","url":"https://api.github.com/users/olivierlacan","html_url":"https://github.com/olivierlacan","followers_url":"https://api.github.com/users/olivierlacan/followers","following_url":"https://api.github.com/users/olivierlacan/following{/other_user}","gists_url":"https://api.github.com/users/olivierlacan/gists{/gist_id}","starred_url":"https://api.github.com/users/olivierlacan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivierlacan/subscriptions","organizations_url":"https://api.github.com/users/olivierlacan/orgs","repos_url":"https://api.github.com/users/olivierlacan/repos","events_url":"https://api.github.com/users/olivierlacan/events{/privacy}","received_events_url":"https://api.github.com/users/olivierlacan/received_events","type":"User","site_admin":false},"repo":{"id":30381315,"name":"mandrill_mailer","full_name":"olivierlacan/mandrill_mailer","owner":{"login":"olivierlacan","id":65950,"avatar_url":"https://avatars.githubusercontent.com/u/65950?v=3","gravatar_id":"","url":"https://api.github.com/users/olivierlacan","html_url":"https://github.com/olivierlacan","followers_url":"https://api.github.com/users/olivierlacan/followers","following_url":"https://api.github.com/users/olivierlacan/following{/other_user}","gists_url":"https://api.github.com/users/olivierlacan/gists{/gist_id}","starred_url":"https://api.github.com/users/olivierlacan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivierlacan/subscriptions","organizations_url":"https://api.github.com/users/olivierlacan/orgs","repos_url":"https://api.github.com/users/olivierlacan/repos","events_url":"https://api.github.com/users/olivierlacan/events{/privacy}","received_events_url":"https://api.github.com/users/olivierlacan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/olivierlacan/mandrill_mailer","description":"A small gem for sending Mandrill template emails","fork":true,"url":"https://api.github.com/repos/olivierlacan/mandrill_mailer","forks_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/forks","keys_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/teams","hooks_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/hooks","issue_events_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/issues/events{/number}","events_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/events","assignees_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/assignees{/user}","branches_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/branches{/branch}","tags_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/tags","blobs_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/git/refs{/sha}","trees_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/statuses/{sha}","languages_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/languages","stargazers_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/stargazers","contributors_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/contributors","subscribers_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/subscribers","subscription_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/subscription","commits_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/commits{/sha}","git_commits_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/git/commits{/sha}","comments_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/comments{/number}","issue_comment_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/issues/comments/{number}","contents_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/contents/{+path}","compare_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/merges","archive_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/downloads","issues_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/issues{/number}","pulls_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/pulls{/number}","milestones_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/milestones{/number}","notifications_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/labels{/name}","releases_url":"https://api.github.com/repos/olivierlacan/mandrill_mailer/releases{/id}","created_at":"2015-02-05T22:13:31Z","updated_at":"2015-02-05T22:13:32Z","pushed_at":"2015-02-05T23:54:29Z","git_url":"git://github.com/olivierlacan/mandrill_mailer.git","ssh_url":"git@github.com:olivierlacan/mandrill_mailer.git","clone_url":"https://github.com/olivierlacan/mandrill_mailer.git","svn_url":"https://github.com/olivierlacan/mandrill_mailer","homepage":"","size":672,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"renz45:master","ref":"master","sha":"ca8441d4756f72bcb09cc402a76c6d4a853dfda2","user":{"login":"renz45","id":599521,"avatar_url":"https://avatars.githubusercontent.com/u/599521?v=3","gravatar_id":"","url":"https://api.github.com/users/renz45","html_url":"https://github.com/renz45","followers_url":"https://api.github.com/users/renz45/followers","following_url":"https://api.github.com/users/renz45/following{/other_user}","gists_url":"https://api.github.com/users/renz45/gists{/gist_id}","starred_url":"https://api.github.com/users/renz45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renz45/subscriptions","organizations_url":"https://api.github.com/users/renz45/orgs","repos_url":"https://api.github.com/users/renz45/repos","events_url":"https://api.github.com/users/renz45/events{/privacy}","received_events_url":"https://api.github.com/users/renz45/received_events","type":"User","site_admin":false},"repo":{"id":5936048,"name":"mandrill_mailer","full_name":"renz45/mandrill_mailer","owner":{"login":"renz45","id":599521,"avatar_url":"https://avatars.githubusercontent.com/u/599521?v=3","gravatar_id":"","url":"https://api.github.com/users/renz45","html_url":"https://github.com/renz45","followers_url":"https://api.github.com/users/renz45/followers","following_url":"https://api.github.com/users/renz45/following{/other_user}","gists_url":"https://api.github.com/users/renz45/gists{/gist_id}","starred_url":"https://api.github.com/users/renz45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renz45/subscriptions","organizations_url":"https://api.github.com/users/renz45/orgs","repos_url":"https://api.github.com/users/renz45/repos","events_url":"https://api.github.com/users/renz45/events{/privacy}","received_events_url":"https://api.github.com/users/renz45/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/renz45/mandrill_mailer","description":"A small gem for sending Mandrill template emails","fork":false,"url":"https://api.github.com/repos/renz45/mandrill_mailer","forks_url":"https://api.github.com/repos/renz45/mandrill_mailer/forks","keys_url":"https://api.github.com/repos/renz45/mandrill_mailer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/renz45/mandrill_mailer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/renz45/mandrill_mailer/teams","hooks_url":"https://api.github.com/repos/renz45/mandrill_mailer/hooks","issue_events_url":"https://api.github.com/repos/renz45/mandrill_mailer/issues/events{/number}","events_url":"https://api.github.com/repos/renz45/mandrill_mailer/events","assignees_url":"https://api.github.com/repos/renz45/mandrill_mailer/assignees{/user}","branches_url":"https://api.github.com/repos/renz45/mandrill_mailer/branches{/branch}","tags_url":"https://api.github.com/repos/renz45/mandrill_mailer/tags","blobs_url":"https://api.github.com/repos/renz45/mandrill_mailer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/renz45/mandrill_mailer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/renz45/mandrill_mailer/git/refs{/sha}","trees_url":"https://api.github.com/repos/renz45/mandrill_mailer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/renz45/mandrill_mailer/statuses/{sha}","languages_url":"https://api.github.com/repos/renz45/mandrill_mailer/languages","stargazers_url":"https://api.github.com/repos/renz45/mandrill_mailer/stargazers","contributors_url":"https://api.github.com/repos/renz45/mandrill_mailer/contributors","subscribers_url":"https://api.github.com/repos/renz45/mandrill_mailer/subscribers","subscription_url":"https://api.github.com/repos/renz45/mandrill_mailer/subscription","commits_url":"https://api.github.com/repos/renz45/mandrill_mailer/commits{/sha}","git_commits_url":"https://api.github.com/repos/renz45/mandrill_mailer/git/commits{/sha}","comments_url":"https://api.github.com/repos/renz45/mandrill_mailer/comments{/number}","issue_comment_url":"https://api.github.com/repos/renz45/mandrill_mailer/issues/comments/{number}","contents_url":"https://api.github.com/repos/renz45/mandrill_mailer/contents/{+path}","compare_url":"https://api.github.com/repos/renz45/mandrill_mailer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/renz45/mandrill_mailer/merges","archive_url":"https://api.github.com/repos/renz45/mandrill_mailer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/renz45/mandrill_mailer/downloads","issues_url":"https://api.github.com/repos/renz45/mandrill_mailer/issues{/number}","pulls_url":"https://api.github.com/repos/renz45/mandrill_mailer/pulls{/number}","milestones_url":"https://api.github.com/repos/renz45/mandrill_mailer/milestones{/number}","notifications_url":"https://api.github.com/repos/renz45/mandrill_mailer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/renz45/mandrill_mailer/labels{/name}","releases_url":"https://api.github.com/repos/renz45/mandrill_mailer/releases{/id}","created_at":"2012-09-24T14:51:35Z","updated_at":"2015-02-02T21:08:49Z","pushed_at":"2014-12-23T14:35:10Z","git_url":"git://github.com/renz45/mandrill_mailer.git","ssh_url":"git@github.com:renz45/mandrill_mailer.git","clone_url":"https://github.com/renz45/mandrill_mailer.git","svn_url":"https://github.com/renz45/mandrill_mailer","homepage":"","size":672,"stargazers_count":123,"watchers_count":123,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":56,"mirror_url":null,"open_issues_count":1,"forks":56,"open_issues":1,"watchers":123,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/renz45/mandrill_mailer/pulls/72"},"html":{"href":"https://github.com/renz45/mandrill_mailer/pull/72"},"issue":{"href":"https://api.github.com/repos/renz45/mandrill_mailer/issues/72"},"comments":{"href":"https://api.github.com/repos/renz45/mandrill_mailer/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/renz45/mandrill_mailer/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/renz45/mandrill_mailer/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/renz45/mandrill_mailer/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/renz45/mandrill_mailer/statuses/c97650806f10aadd873e777769af7755b1d9e76b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":24,"deletions":7,"changed_files":2}}