{"action":"created","issue":{"url":"https://api.github.com/repos/stephenb/sendgrid/issues/9","repository_url":"https://api.github.com/repos/stephenb/sendgrid","labels_url":"https://api.github.com/repos/stephenb/sendgrid/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/stephenb/sendgrid/issues/9/comments","events_url":"https://api.github.com/repos/stephenb/sendgrid/issues/9/events","html_url":"https://github.com/stephenb/sendgrid/pull/9","id":9397045,"number":9,"title":"Adds support for setting default \"sendgrid_disable\" options at mailer level, not just emails","user":{"login":"gaizka","id":25550,"avatar_url":"https://avatars.githubusercontent.com/u/25550?v=3","gravatar_id":"","url":"https://api.github.com/users/gaizka","html_url":"https://github.com/gaizka","followers_url":"https://api.github.com/users/gaizka/followers","following_url":"https://api.github.com/users/gaizka/following{/other_user}","gists_url":"https://api.github.com/users/gaizka/gists{/gist_id}","starred_url":"https://api.github.com/users/gaizka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaizka/subscriptions","organizations_url":"https://api.github.com/users/gaizka/orgs","repos_url":"https://api.github.com/users/gaizka/repos","events_url":"https://api.github.com/users/gaizka/events{/privacy}","received_events_url":"https://api.github.com/users/gaizka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2012-12-19T10:59:55Z","updated_at":"2016-04-26T10:34:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/stephenb/sendgrid/pulls/9","html_url":"https://github.com/stephenb/sendgrid/pull/9","diff_url":"https://github.com/stephenb/sendgrid/pull/9.diff","patch_url":"https://github.com/stephenb/sendgrid/pull/9.patch"},"body":"Then you can have:\r\n\r\nclass AdminMailer < ActionMailer::Base\r\n  include SendGrid\r\n  sendgrid_disable :subscriptiontrack\r\n\r\n  def this_has_subscriptiontrack_disabled ; end\r\n  def this_has_subscriptiontrack_disabled_too ; end\r\n\r\n  def this_has_subscriptiontrack_enabled\r\n    sendgrid_enable :subscriptiontrack\r\n  end\r\nend"},"comment":{"url":"https://api.github.com/repos/stephenb/sendgrid/issues/comments/214697279","html_url":"https://github.com/stephenb/sendgrid/pull/9#issuecomment-214697279","issue_url":"https://api.github.com/repos/stephenb/sendgrid/issues/9","id":214697279,"user":{"login":"rstrand","id":438025,"avatar_url":"https://avatars.githubusercontent.com/u/438025?v=3","gravatar_id":"","url":"https://api.github.com/users/rstrand","html_url":"https://github.com/rstrand","followers_url":"https://api.github.com/users/rstrand/followers","following_url":"https://api.github.com/users/rstrand/following{/other_user}","gists_url":"https://api.github.com/users/rstrand/gists{/gist_id}","starred_url":"https://api.github.com/users/rstrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rstrand/subscriptions","organizations_url":"https://api.github.com/users/rstrand/orgs","repos_url":"https://api.github.com/users/rstrand/repos","events_url":"https://api.github.com/users/rstrand/events{/privacy}","received_events_url":"https://api.github.com/users/rstrand/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T10:34:02Z","updated_at":"2016-04-26T10:34:02Z","body":"@stephenb The default behaviour when setting up a new account with Sendgrid is that click and open tracking is enabled on all emails unless a header is set explicitly disabling it. This feature would be very useful as it avoids having to disable click/open tracking in your Sendgrid account."}}