{"action":"created","issue":{"url":"https://api.github.com/repos/plataformatec/devise/issues/4212","repository_url":"https://api.github.com/repos/plataformatec/devise","labels_url":"https://api.github.com/repos/plataformatec/devise/issues/4212/labels{/name}","comments_url":"https://api.github.com/repos/plataformatec/devise/issues/4212/comments","events_url":"https://api.github.com/repos/plataformatec/devise/issues/4212/events","html_url":"https://github.com/plataformatec/devise/issues/4212","id":167019782,"number":4212,"title":"Rails 5 renderer and devise","user":{"login":"leonardoprg","id":1134099,"avatar_url":"https://avatars.githubusercontent.com/u/1134099?v=3","gravatar_id":"","url":"https://api.github.com/users/leonardoprg","html_url":"https://github.com/leonardoprg","followers_url":"https://api.github.com/users/leonardoprg/followers","following_url":"https://api.github.com/users/leonardoprg/following{/other_user}","gists_url":"https://api.github.com/users/leonardoprg/gists{/gist_id}","starred_url":"https://api.github.com/users/leonardoprg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonardoprg/subscriptions","organizations_url":"https://api.github.com/users/leonardoprg/orgs","repos_url":"https://api.github.com/users/leonardoprg/repos","events_url":"https://api.github.com/users/leonardoprg/events{/privacy}","received_events_url":"https://api.github.com/users/leonardoprg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-22T10:48:12Z","updated_at":"2016-07-26T15:01:15Z","closed_at":"2016-07-26T13:13:11Z","body":"Hello guys,\r\n\r\nI would like to ask if you guys know a problem related to `render view outside the action`  and devise.\r\n\r\nThe problem for me is, I have a callback on the model that uses `render` to render a view.\r\nOn the view it call's `current_user` method.\r\n\r\nDevise raise an error told me it's not possible to found `Warden`.\r\nTaking a look on the internet, I saw some possible solutions for the problem,\r\n\r\nmy question is, what is the best approach for that?\r\nset the `request.env` manually?\r\n\r\nRegards,"},"comment":{"url":"https://api.github.com/repos/plataformatec/devise/issues/comments/235295871","html_url":"https://github.com/plataformatec/devise/issues/4212#issuecomment-235295871","issue_url":"https://api.github.com/repos/plataformatec/devise/issues/4212","id":235295871,"user":{"login":"leonardoprg","id":1134099,"avatar_url":"https://avatars.githubusercontent.com/u/1134099?v=3","gravatar_id":"","url":"https://api.github.com/users/leonardoprg","html_url":"https://github.com/leonardoprg","followers_url":"https://api.github.com/users/leonardoprg/followers","following_url":"https://api.github.com/users/leonardoprg/following{/other_user}","gists_url":"https://api.github.com/users/leonardoprg/gists{/gist_id}","starred_url":"https://api.github.com/users/leonardoprg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonardoprg/subscriptions","organizations_url":"https://api.github.com/users/leonardoprg/orgs","repos_url":"https://api.github.com/users/leonardoprg/repos","events_url":"https://api.github.com/users/leonardoprg/events{/privacy}","received_events_url":"https://api.github.com/users/leonardoprg/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T15:01:15Z","updated_at":"2016-07-26T15:01:15Z","body":"Ok,\r\n\r\nthe suggestion sounds good for now.\r\n\r\nThanks for answer."}}
{"actor":{"display_login":"leonardoprg"}}