{"action":"created","issue":{"url":"https://api.github.com/repos/wildland/token_authenticate_me/issues/59","repository_url":"https://api.github.com/repos/wildland/token_authenticate_me","labels_url":"https://api.github.com/repos/wildland/token_authenticate_me/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/wildland/token_authenticate_me/issues/59/comments","events_url":"https://api.github.com/repos/wildland/token_authenticate_me/issues/59/events","html_url":"https://github.com/wildland/token_authenticate_me/issues/59","id":350915586,"node_id":"MDU6SXNzdWUzNTA5MTU1ODY=","number":59,"title":"Update render methods to run on 4 and 5","user":{"login":"harokevin","id":8799167,"node_id":"MDQ6VXNlcjg3OTkxNjc=","avatar_url":"https://avatars2.githubusercontent.com/u/8799167?v=4","gravatar_id":"","url":"https://api.github.com/users/harokevin","html_url":"https://github.com/harokevin","followers_url":"https://api.github.com/users/harokevin/followers","following_url":"https://api.github.com/users/harokevin/following{/other_user}","gists_url":"https://api.github.com/users/harokevin/gists{/gist_id}","starred_url":"https://api.github.com/users/harokevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harokevin/subscriptions","organizations_url":"https://api.github.com/users/harokevin/orgs","repos_url":"https://api.github.com/users/harokevin/repos","events_url":"https://api.github.com/users/harokevin/events{/privacy}","received_events_url":"https://api.github.com/users/harokevin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-15T18:28:57Z","updated_at":"2018-08-15T22:52:57Z","closed_at":null,"author_association":"NONE","body":"Users of the lib that are running rails 5 \r\n\r\n`nothing: true` part of `render status: 204, nothing: true` was deprecated in rails 5.1 and removed in 5.2\r\n\r\nInstead of  \r\n```render status: 204, body: nil```\r\nuse \r\n`head 204`\r\n for Rails > 5.2 \r\n\r\nThis renders an empty response with status 204.\r\n\r\nAction Item:\r\n\r\nUpdate all `render` methods to use either 5.2 syntax(`head 204`), if rails > 5.2, or `render status: 204, body: nil`\r\n\r\n```\r\n        def destroy\r\n          unauthenticate_resource\r\n          \r\n          if Rails::VERSION::STRING < \"5.2.0\"\r\n               head 204\r\n          else\r\n                render status: 204, body: nil \r\n          end\r\n        rescue\r\n          render_unauthorized\r\n        end\r\n```"},"comment":{"url":"https://api.github.com/repos/wildland/token_authenticate_me/issues/comments/413364289","html_url":"https://github.com/wildland/token_authenticate_me/issues/59#issuecomment-413364289","issue_url":"https://api.github.com/repos/wildland/token_authenticate_me/issues/59","id":413364289,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzM2NDI4OQ==","user":{"login":"harokevin","id":8799167,"node_id":"MDQ6VXNlcjg3OTkxNjc=","avatar_url":"https://avatars2.githubusercontent.com/u/8799167?v=4","gravatar_id":"","url":"https://api.github.com/users/harokevin","html_url":"https://github.com/harokevin","followers_url":"https://api.github.com/users/harokevin/followers","following_url":"https://api.github.com/users/harokevin/following{/other_user}","gists_url":"https://api.github.com/users/harokevin/gists{/gist_id}","starred_url":"https://api.github.com/users/harokevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harokevin/subscriptions","organizations_url":"https://api.github.com/users/harokevin/orgs","repos_url":"https://api.github.com/users/harokevin/repos","events_url":"https://api.github.com/users/harokevin/events{/privacy}","received_events_url":"https://api.github.com/users/harokevin/received_events","type":"User","site_admin":false},"created_at":"2018-08-15T22:52:57Z","updated_at":"2018-08-15T22:52:57Z","author_association":"NONE","body":"The solution to this is just to use `head 204`"}}
{"actor":{"display_login":"harokevin"}}