{"action":"opened","number":18,"pull_request":{"url":"https://api.github.com/repos/abuiles/rails-csrf/pulls/18","id":30554781,"html_url":"https://github.com/abuiles/rails-csrf/pull/18","diff_url":"https://github.com/abuiles/rails-csrf/pull/18.diff","patch_url":"https://github.com/abuiles/rails-csrf/pull/18.patch","issue_url":"https://api.github.com/repos/abuiles/rails-csrf/issues/18","number":18,"state":"open","locked":false,"title":"Solve promise issue in ember v1.11.0","user":{"login":"andruby","id":10639,"avatar_url":"https://avatars.githubusercontent.com/u/10639?v=3","gravatar_id":"","url":"https://api.github.com/users/andruby","html_url":"https://github.com/andruby","followers_url":"https://api.github.com/users/andruby/followers","following_url":"https://api.github.com/users/andruby/following{/other_user}","gists_url":"https://api.github.com/users/andruby/gists{/gist_id}","starred_url":"https://api.github.com/users/andruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andruby/subscriptions","organizations_url":"https://api.github.com/users/andruby/orgs","repos_url":"https://api.github.com/users/andruby/repos","events_url":"https://api.github.com/users/andruby/events{/privacy}","received_events_url":"https://api.github.com/users/andruby/received_events","type":"User","site_admin":false},"body":"When using rails-csrf with ember v1.11.0-beta.4 is get this issue:\r\n\r\n```\r\nUncaught TypeError: Cannot read property 'then' of undefined   csrf.js:39\r\nfetchToken\r\n```\r\n\r\nThe PR fixes it by removing a seemingly breaking call to promise.","created_at":"2015-03-05T13:02:01Z","updated_at":"2015-03-05T13:02:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/abuiles/rails-csrf/pulls/18/commits","review_comments_url":"https://api.github.com/repos/abuiles/rails-csrf/pulls/18/comments","review_comment_url":"https://api.github.com/repos/abuiles/rails-csrf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/abuiles/rails-csrf/issues/18/comments","statuses_url":"https://api.github.com/repos/abuiles/rails-csrf/statuses/d8b7a9615ea02d7822777063681959e814dcfaaf","head":{"label":"andruby:master","ref":"master","sha":"d8b7a9615ea02d7822777063681959e814dcfaaf","user":{"login":"andruby","id":10639,"avatar_url":"https://avatars.githubusercontent.com/u/10639?v=3","gravatar_id":"","url":"https://api.github.com/users/andruby","html_url":"https://github.com/andruby","followers_url":"https://api.github.com/users/andruby/followers","following_url":"https://api.github.com/users/andruby/following{/other_user}","gists_url":"https://api.github.com/users/andruby/gists{/gist_id}","starred_url":"https://api.github.com/users/andruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andruby/subscriptions","organizations_url":"https://api.github.com/users/andruby/orgs","repos_url":"https://api.github.com/users/andruby/repos","events_url":"https://api.github.com/users/andruby/events{/privacy}","received_events_url":"https://api.github.com/users/andruby/received_events","type":"User","site_admin":false},"repo":{"id":31710354,"name":"rails-csrf","full_name":"andruby/rails-csrf","owner":{"login":"andruby","id":10639,"avatar_url":"https://avatars.githubusercontent.com/u/10639?v=3","gravatar_id":"","url":"https://api.github.com/users/andruby","html_url":"https://github.com/andruby","followers_url":"https://api.github.com/users/andruby/followers","following_url":"https://api.github.com/users/andruby/following{/other_user}","gists_url":"https://api.github.com/users/andruby/gists{/gist_id}","starred_url":"https://api.github.com/users/andruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andruby/subscriptions","organizations_url":"https://api.github.com/users/andruby/orgs","repos_url":"https://api.github.com/users/andruby/repos","events_url":"https://api.github.com/users/andruby/events{/privacy}","received_events_url":"https://api.github.com/users/andruby/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andruby/rails-csrf","description":null,"fork":true,"url":"https://api.github.com/repos/andruby/rails-csrf","forks_url":"https://api.github.com/repos/andruby/rails-csrf/forks","keys_url":"https://api.github.com/repos/andruby/rails-csrf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andruby/rails-csrf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andruby/rails-csrf/teams","hooks_url":"https://api.github.com/repos/andruby/rails-csrf/hooks","issue_events_url":"https://api.github.com/repos/andruby/rails-csrf/issues/events{/number}","events_url":"https://api.github.com/repos/andruby/rails-csrf/events","assignees_url":"https://api.github.com/repos/andruby/rails-csrf/assignees{/user}","branches_url":"https://api.github.com/repos/andruby/rails-csrf/branches{/branch}","tags_url":"https://api.github.com/repos/andruby/rails-csrf/tags","blobs_url":"https://api.github.com/repos/andruby/rails-csrf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andruby/rails-csrf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andruby/rails-csrf/git/refs{/sha}","trees_url":"https://api.github.com/repos/andruby/rails-csrf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andruby/rails-csrf/statuses/{sha}","languages_url":"https://api.github.com/repos/andruby/rails-csrf/languages","stargazers_url":"https://api.github.com/repos/andruby/rails-csrf/stargazers","contributors_url":"https://api.github.com/repos/andruby/rails-csrf/contributors","subscribers_url":"https://api.github.com/repos/andruby/rails-csrf/subscribers","subscription_url":"https://api.github.com/repos/andruby/rails-csrf/subscription","commits_url":"https://api.github.com/repos/andruby/rails-csrf/commits{/sha}","git_commits_url":"https://api.github.com/repos/andruby/rails-csrf/git/commits{/sha}","comments_url":"https://api.github.com/repos/andruby/rails-csrf/comments{/number}","issue_comment_url":"https://api.github.com/repos/andruby/rails-csrf/issues/comments{/number}","contents_url":"https://api.github.com/repos/andruby/rails-csrf/contents/{+path}","compare_url":"https://api.github.com/repos/andruby/rails-csrf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andruby/rails-csrf/merges","archive_url":"https://api.github.com/repos/andruby/rails-csrf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andruby/rails-csrf/downloads","issues_url":"https://api.github.com/repos/andruby/rails-csrf/issues{/number}","pulls_url":"https://api.github.com/repos/andruby/rails-csrf/pulls{/number}","milestones_url":"https://api.github.com/repos/andruby/rails-csrf/milestones{/number}","notifications_url":"https://api.github.com/repos/andruby/rails-csrf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andruby/rails-csrf/labels{/name}","releases_url":"https://api.github.com/repos/andruby/rails-csrf/releases{/id}","created_at":"2015-03-05T11:15:11Z","updated_at":"2015-03-05T13:01:04Z","pushed_at":"2015-03-05T13:01:04Z","git_url":"git://github.com/andruby/rails-csrf.git","ssh_url":"git@github.com:andruby/rails-csrf.git","clone_url":"https://github.com/andruby/rails-csrf.git","svn_url":"https://github.com/andruby/rails-csrf","homepage":null,"size":325,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"abuiles:master","ref":"master","sha":"6653c552bfe77e483c4ef54812a55be73224fb3b","user":{"login":"abuiles","id":21772,"avatar_url":"https://avatars.githubusercontent.com/u/21772?v=3","gravatar_id":"","url":"https://api.github.com/users/abuiles","html_url":"https://github.com/abuiles","followers_url":"https://api.github.com/users/abuiles/followers","following_url":"https://api.github.com/users/abuiles/following{/other_user}","gists_url":"https://api.github.com/users/abuiles/gists{/gist_id}","starred_url":"https://api.github.com/users/abuiles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abuiles/subscriptions","organizations_url":"https://api.github.com/users/abuiles/orgs","repos_url":"https://api.github.com/users/abuiles/repos","events_url":"https://api.github.com/users/abuiles/events{/privacy}","received_events_url":"https://api.github.com/users/abuiles/received_events","type":"User","site_admin":false},"repo":{"id":19611000,"name":"rails-csrf","full_name":"abuiles/rails-csrf","owner":{"login":"abuiles","id":21772,"avatar_url":"https://avatars.githubusercontent.com/u/21772?v=3","gravatar_id":"","url":"https://api.github.com/users/abuiles","html_url":"https://github.com/abuiles","followers_url":"https://api.github.com/users/abuiles/followers","following_url":"https://api.github.com/users/abuiles/following{/other_user}","gists_url":"https://api.github.com/users/abuiles/gists{/gist_id}","starred_url":"https://api.github.com/users/abuiles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abuiles/subscriptions","organizations_url":"https://api.github.com/users/abuiles/orgs","repos_url":"https://api.github.com/users/abuiles/repos","events_url":"https://api.github.com/users/abuiles/events{/privacy}","received_events_url":"https://api.github.com/users/abuiles/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/abuiles/rails-csrf","description":null,"fork":false,"url":"https://api.github.com/repos/abuiles/rails-csrf","forks_url":"https://api.github.com/repos/abuiles/rails-csrf/forks","keys_url":"https://api.github.com/repos/abuiles/rails-csrf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abuiles/rails-csrf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abuiles/rails-csrf/teams","hooks_url":"https://api.github.com/repos/abuiles/rails-csrf/hooks","issue_events_url":"https://api.github.com/repos/abuiles/rails-csrf/issues/events{/number}","events_url":"https://api.github.com/repos/abuiles/rails-csrf/events","assignees_url":"https://api.github.com/repos/abuiles/rails-csrf/assignees{/user}","branches_url":"https://api.github.com/repos/abuiles/rails-csrf/branches{/branch}","tags_url":"https://api.github.com/repos/abuiles/rails-csrf/tags","blobs_url":"https://api.github.com/repos/abuiles/rails-csrf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abuiles/rails-csrf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abuiles/rails-csrf/git/refs{/sha}","trees_url":"https://api.github.com/repos/abuiles/rails-csrf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abuiles/rails-csrf/statuses/{sha}","languages_url":"https://api.github.com/repos/abuiles/rails-csrf/languages","stargazers_url":"https://api.github.com/repos/abuiles/rails-csrf/stargazers","contributors_url":"https://api.github.com/repos/abuiles/rails-csrf/contributors","subscribers_url":"https://api.github.com/repos/abuiles/rails-csrf/subscribers","subscription_url":"https://api.github.com/repos/abuiles/rails-csrf/subscription","commits_url":"https://api.github.com/repos/abuiles/rails-csrf/commits{/sha}","git_commits_url":"https://api.github.com/repos/abuiles/rails-csrf/git/commits{/sha}","comments_url":"https://api.github.com/repos/abuiles/rails-csrf/comments{/number}","issue_comment_url":"https://api.github.com/repos/abuiles/rails-csrf/issues/comments{/number}","contents_url":"https://api.github.com/repos/abuiles/rails-csrf/contents/{+path}","compare_url":"https://api.github.com/repos/abuiles/rails-csrf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abuiles/rails-csrf/merges","archive_url":"https://api.github.com/repos/abuiles/rails-csrf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abuiles/rails-csrf/downloads","issues_url":"https://api.github.com/repos/abuiles/rails-csrf/issues{/number}","pulls_url":"https://api.github.com/repos/abuiles/rails-csrf/pulls{/number}","milestones_url":"https://api.github.com/repos/abuiles/rails-csrf/milestones{/number}","notifications_url":"https://api.github.com/repos/abuiles/rails-csrf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abuiles/rails-csrf/labels{/name}","releases_url":"https://api.github.com/repos/abuiles/rails-csrf/releases{/id}","created_at":"2014-05-09T12:54:06Z","updated_at":"2015-03-05T00:35:57Z","pushed_at":"2015-03-05T00:35:56Z","git_url":"git://github.com/abuiles/rails-csrf.git","ssh_url":"git@github.com:abuiles/rails-csrf.git","clone_url":"https://github.com/abuiles/rails-csrf.git","svn_url":"https://github.com/abuiles/rails-csrf","homepage":null,"size":325,"stargazers_count":51,"watchers_count":51,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":6,"forks":8,"open_issues":6,"watchers":51,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/abuiles/rails-csrf/pulls/18"},"html":{"href":"https://github.com/abuiles/rails-csrf/pull/18"},"issue":{"href":"https://api.github.com/repos/abuiles/rails-csrf/issues/18"},"comments":{"href":"https://api.github.com/repos/abuiles/rails-csrf/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/abuiles/rails-csrf/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/abuiles/rails-csrf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/abuiles/rails-csrf/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/abuiles/rails-csrf/statuses/d8b7a9615ea02d7822777063681959e814dcfaaf"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":1,"deletions":2,"changed_files":1}}