{"action":"opened","number":4038,"pull_request":{"url":"https://api.github.com/repos/plataformatec/devise/pulls/4038","id":66380310,"html_url":"https://github.com/plataformatec/devise/pull/4038","diff_url":"https://github.com/plataformatec/devise/pull/4038.diff","patch_url":"https://github.com/plataformatec/devise/pull/4038.patch","issue_url":"https://api.github.com/repos/plataformatec/devise/issues/4038","number":4038,"state":"open","locked":false,"title":"Fixes issue with devise setting  as an alert message on session expir…","user":{"login":"edgarsilva","id":518231,"avatar_url":"https://avatars.githubusercontent.com/u/518231?v=3","gravatar_id":"","url":"https://api.github.com/users/edgarsilva","html_url":"https://github.com/edgarsilva","followers_url":"https://api.github.com/users/edgarsilva/followers","following_url":"https://api.github.com/users/edgarsilva/following{/other_user}","gists_url":"https://api.github.com/users/edgarsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/edgarsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edgarsilva/subscriptions","organizations_url":"https://api.github.com/users/edgarsilva/orgs","repos_url":"https://api.github.com/users/edgarsilva/repos","events_url":"https://api.github.com/users/edgarsilva/events{/privacy}","received_events_url":"https://api.github.com/users/edgarsilva/received_events","type":"User","site_admin":false},"body":"…ed with timeoutable.\r\n\r\nIf a session expires two alerts are shown one with message `true` and another one with `\"Your session expired. Please sign in again to continue.\"`\r\n\r\nThere is no need to check if it is json format at this time and setup a new flash with `true`. Since that was already taking cared of at: https://github.com/plataformatec/devise/blob/master/lib/devise/failure_app.rb#L78-L89","created_at":"2016-04-13T19:48:34Z","updated_at":"2016-04-13T19:48:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/plataformatec/devise/pulls/4038/commits","review_comments_url":"https://api.github.com/repos/plataformatec/devise/pulls/4038/comments","review_comment_url":"https://api.github.com/repos/plataformatec/devise/pulls/comments{/number}","comments_url":"https://api.github.com/repos/plataformatec/devise/issues/4038/comments","statuses_url":"https://api.github.com/repos/plataformatec/devise/statuses/dcc22bf76a161a733b906992f9b23a07e86120dd","head":{"label":"edgarsilva:master","ref":"master","sha":"dcc22bf76a161a733b906992f9b23a07e86120dd","user":{"login":"edgarsilva","id":518231,"avatar_url":"https://avatars.githubusercontent.com/u/518231?v=3","gravatar_id":"","url":"https://api.github.com/users/edgarsilva","html_url":"https://github.com/edgarsilva","followers_url":"https://api.github.com/users/edgarsilva/followers","following_url":"https://api.github.com/users/edgarsilva/following{/other_user}","gists_url":"https://api.github.com/users/edgarsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/edgarsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edgarsilva/subscriptions","organizations_url":"https://api.github.com/users/edgarsilva/orgs","repos_url":"https://api.github.com/users/edgarsilva/repos","events_url":"https://api.github.com/users/edgarsilva/events{/privacy}","received_events_url":"https://api.github.com/users/edgarsilva/received_events","type":"User","site_admin":false},"repo":{"id":56180921,"name":"devise","full_name":"edgarsilva/devise","owner":{"login":"edgarsilva","id":518231,"avatar_url":"https://avatars.githubusercontent.com/u/518231?v=3","gravatar_id":"","url":"https://api.github.com/users/edgarsilva","html_url":"https://github.com/edgarsilva","followers_url":"https://api.github.com/users/edgarsilva/followers","following_url":"https://api.github.com/users/edgarsilva/following{/other_user}","gists_url":"https://api.github.com/users/edgarsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/edgarsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edgarsilva/subscriptions","organizations_url":"https://api.github.com/users/edgarsilva/orgs","repos_url":"https://api.github.com/users/edgarsilva/repos","events_url":"https://api.github.com/users/edgarsilva/events{/privacy}","received_events_url":"https://api.github.com/users/edgarsilva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/edgarsilva/devise","description":"Flexible authentication solution for Rails with Warden.","fork":true,"url":"https://api.github.com/repos/edgarsilva/devise","forks_url":"https://api.github.com/repos/edgarsilva/devise/forks","keys_url":"https://api.github.com/repos/edgarsilva/devise/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edgarsilva/devise/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edgarsilva/devise/teams","hooks_url":"https://api.github.com/repos/edgarsilva/devise/hooks","issue_events_url":"https://api.github.com/repos/edgarsilva/devise/issues/events{/number}","events_url":"https://api.github.com/repos/edgarsilva/devise/events","assignees_url":"https://api.github.com/repos/edgarsilva/devise/assignees{/user}","branches_url":"https://api.github.com/repos/edgarsilva/devise/branches{/branch}","tags_url":"https://api.github.com/repos/edgarsilva/devise/tags","blobs_url":"https://api.github.com/repos/edgarsilva/devise/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edgarsilva/devise/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edgarsilva/devise/git/refs{/sha}","trees_url":"https://api.github.com/repos/edgarsilva/devise/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edgarsilva/devise/statuses/{sha}","languages_url":"https://api.github.com/repos/edgarsilva/devise/languages","stargazers_url":"https://api.github.com/repos/edgarsilva/devise/stargazers","contributors_url":"https://api.github.com/repos/edgarsilva/devise/contributors","subscribers_url":"https://api.github.com/repos/edgarsilva/devise/subscribers","subscription_url":"https://api.github.com/repos/edgarsilva/devise/subscription","commits_url":"https://api.github.com/repos/edgarsilva/devise/commits{/sha}","git_commits_url":"https://api.github.com/repos/edgarsilva/devise/git/commits{/sha}","comments_url":"https://api.github.com/repos/edgarsilva/devise/comments{/number}","issue_comment_url":"https://api.github.com/repos/edgarsilva/devise/issues/comments{/number}","contents_url":"https://api.github.com/repos/edgarsilva/devise/contents/{+path}","compare_url":"https://api.github.com/repos/edgarsilva/devise/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edgarsilva/devise/merges","archive_url":"https://api.github.com/repos/edgarsilva/devise/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edgarsilva/devise/downloads","issues_url":"https://api.github.com/repos/edgarsilva/devise/issues{/number}","pulls_url":"https://api.github.com/repos/edgarsilva/devise/pulls{/number}","milestones_url":"https://api.github.com/repos/edgarsilva/devise/milestones{/number}","notifications_url":"https://api.github.com/repos/edgarsilva/devise/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edgarsilva/devise/labels{/name}","releases_url":"https://api.github.com/repos/edgarsilva/devise/releases{/id}","deployments_url":"https://api.github.com/repos/edgarsilva/devise/deployments","created_at":"2016-04-13T19:42:19Z","updated_at":"2016-04-13T19:42:25Z","pushed_at":"2016-04-13T19:45:15Z","git_url":"git://github.com/edgarsilva/devise.git","ssh_url":"git@github.com:edgarsilva/devise.git","clone_url":"https://github.com/edgarsilva/devise.git","svn_url":"https://github.com/edgarsilva/devise","homepage":"http://blog.plataformatec.com.br/tag/devise/","size":4396,"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":"plataformatec:master","ref":"master","sha":"57d150e535f65c9b408504fa6f279a5417fa3de5","user":{"login":"plataformatec","id":127679,"avatar_url":"https://avatars.githubusercontent.com/u/127679?v=3","gravatar_id":"","url":"https://api.github.com/users/plataformatec","html_url":"https://github.com/plataformatec","followers_url":"https://api.github.com/users/plataformatec/followers","following_url":"https://api.github.com/users/plataformatec/following{/other_user}","gists_url":"https://api.github.com/users/plataformatec/gists{/gist_id}","starred_url":"https://api.github.com/users/plataformatec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plataformatec/subscriptions","organizations_url":"https://api.github.com/users/plataformatec/orgs","repos_url":"https://api.github.com/users/plataformatec/repos","events_url":"https://api.github.com/users/plataformatec/events{/privacy}","received_events_url":"https://api.github.com/users/plataformatec/received_events","type":"Organization","site_admin":false},"repo":{"id":308770,"name":"devise","full_name":"plataformatec/devise","owner":{"login":"plataformatec","id":127679,"avatar_url":"https://avatars.githubusercontent.com/u/127679?v=3","gravatar_id":"","url":"https://api.github.com/users/plataformatec","html_url":"https://github.com/plataformatec","followers_url":"https://api.github.com/users/plataformatec/followers","following_url":"https://api.github.com/users/plataformatec/following{/other_user}","gists_url":"https://api.github.com/users/plataformatec/gists{/gist_id}","starred_url":"https://api.github.com/users/plataformatec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plataformatec/subscriptions","organizations_url":"https://api.github.com/users/plataformatec/orgs","repos_url":"https://api.github.com/users/plataformatec/repos","events_url":"https://api.github.com/users/plataformatec/events{/privacy}","received_events_url":"https://api.github.com/users/plataformatec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/plataformatec/devise","description":"Flexible authentication solution for Rails with Warden.","fork":false,"url":"https://api.github.com/repos/plataformatec/devise","forks_url":"https://api.github.com/repos/plataformatec/devise/forks","keys_url":"https://api.github.com/repos/plataformatec/devise/keys{/key_id}","collaborators_url":"https://api.github.com/repos/plataformatec/devise/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/plataformatec/devise/teams","hooks_url":"https://api.github.com/repos/plataformatec/devise/hooks","issue_events_url":"https://api.github.com/repos/plataformatec/devise/issues/events{/number}","events_url":"https://api.github.com/repos/plataformatec/devise/events","assignees_url":"https://api.github.com/repos/plataformatec/devise/assignees{/user}","branches_url":"https://api.github.com/repos/plataformatec/devise/branches{/branch}","tags_url":"https://api.github.com/repos/plataformatec/devise/tags","blobs_url":"https://api.github.com/repos/plataformatec/devise/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/plataformatec/devise/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/plataformatec/devise/git/refs{/sha}","trees_url":"https://api.github.com/repos/plataformatec/devise/git/trees{/sha}","statuses_url":"https://api.github.com/repos/plataformatec/devise/statuses/{sha}","languages_url":"https://api.github.com/repos/plataformatec/devise/languages","stargazers_url":"https://api.github.com/repos/plataformatec/devise/stargazers","contributors_url":"https://api.github.com/repos/plataformatec/devise/contributors","subscribers_url":"https://api.github.com/repos/plataformatec/devise/subscribers","subscription_url":"https://api.github.com/repos/plataformatec/devise/subscription","commits_url":"https://api.github.com/repos/plataformatec/devise/commits{/sha}","git_commits_url":"https://api.github.com/repos/plataformatec/devise/git/commits{/sha}","comments_url":"https://api.github.com/repos/plataformatec/devise/comments{/number}","issue_comment_url":"https://api.github.com/repos/plataformatec/devise/issues/comments{/number}","contents_url":"https://api.github.com/repos/plataformatec/devise/contents/{+path}","compare_url":"https://api.github.com/repos/plataformatec/devise/compare/{base}...{head}","merges_url":"https://api.github.com/repos/plataformatec/devise/merges","archive_url":"https://api.github.com/repos/plataformatec/devise/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/plataformatec/devise/downloads","issues_url":"https://api.github.com/repos/plataformatec/devise/issues{/number}","pulls_url":"https://api.github.com/repos/plataformatec/devise/pulls{/number}","milestones_url":"https://api.github.com/repos/plataformatec/devise/milestones{/number}","notifications_url":"https://api.github.com/repos/plataformatec/devise/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/plataformatec/devise/labels{/name}","releases_url":"https://api.github.com/repos/plataformatec/devise/releases{/id}","deployments_url":"https://api.github.com/repos/plataformatec/devise/deployments","created_at":"2009-09-16T12:15:12Z","updated_at":"2016-04-13T19:21:40Z","pushed_at":"2016-04-13T02:56:00Z","git_url":"git://github.com/plataformatec/devise.git","ssh_url":"git@github.com:plataformatec/devise.git","clone_url":"https://github.com/plataformatec/devise.git","svn_url":"https://github.com/plataformatec/devise","homepage":"http://blog.plataformatec.com.br/tag/devise/","size":6925,"stargazers_count":14937,"watchers_count":14937,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3335,"mirror_url":null,"open_issues_count":57,"forks":3335,"open_issues":57,"watchers":14937,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/plataformatec/devise/pulls/4038"},"html":{"href":"https://github.com/plataformatec/devise/pull/4038"},"issue":{"href":"https://api.github.com/repos/plataformatec/devise/issues/4038"},"comments":{"href":"https://api.github.com/repos/plataformatec/devise/issues/4038/comments"},"review_comments":{"href":"https://api.github.com/repos/plataformatec/devise/pulls/4038/comments"},"review_comment":{"href":"https://api.github.com/repos/plataformatec/devise/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/plataformatec/devise/pulls/4038/commits"},"statuses":{"href":"https://api.github.com/repos/plataformatec/devise/statuses/dcc22bf76a161a733b906992f9b23a07e86120dd"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":0,"deletions":2,"changed_files":1}}