{"action":"created","comment":{"url":"https://api.github.com/repos/mumuki/mumuki-atheneum/pulls/comments/67939871","id":67939871,"diff_hunk":"@@ -30,6 +30,8 @@\n                        value: @default_content,\n                        style: 'display: none' %>\n         </div>\n+        <%= f.hidden_field :editor_bottom, value: editor_bottom if defined?(editor_bottom) %>","path":"app/views/layouts/submissions/editor/_problem_form.html.erb","position":4,"original_position":4,"commit_id":"04402aef303bf6112ec7311cd17898ed3a6efcb3","original_commit_id":"04402aef303bf6112ec7311cd17898ed3a6efcb3","user":{"login":"flbulgarelli","id":677436,"avatar_url":"https://avatars.githubusercontent.com/u/677436?v=3","gravatar_id":"","url":"https://api.github.com/users/flbulgarelli","html_url":"https://github.com/flbulgarelli","followers_url":"https://api.github.com/users/flbulgarelli/followers","following_url":"https://api.github.com/users/flbulgarelli/following{/other_user}","gists_url":"https://api.github.com/users/flbulgarelli/gists{/gist_id}","starred_url":"https://api.github.com/users/flbulgarelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flbulgarelli/subscriptions","organizations_url":"https://api.github.com/users/flbulgarelli/orgs","repos_url":"https://api.github.com/users/flbulgarelli/repos","events_url":"https://api.github.com/users/flbulgarelli/events{/privacy}","received_events_url":"https://api.github.com/users/flbulgarelli/received_events","type":"User","site_admin":false},"body":"This means that this value, if present, will be always `true`. This is weird. I'd change this expression to \r\n\r\n```ruby\r\n.... value: defined?(editor_bottom) ? editor_bottom : false\r\n```\r\n\r\nAnd then check that the value is true, instead than checking presence of the hidden field ","created_at":"2016-06-21T19:55:45Z","updated_at":"2016-06-21T19:55:45Z","html_url":"https://github.com/mumuki/mumuki-atheneum/pull/610#discussion_r67939871","pull_request_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/pulls/610","_links":{"self":{"href":"https://api.github.com/repos/mumuki/mumuki-atheneum/pulls/comments/67939871"},"html":{"href":"https://github.com/mumuki/mumuki-atheneum/pull/610#discussion_r67939871"},"pull_request":{"href":"https://api.github.com/repos/mumuki/mumuki-atheneum/pulls/610"}}},"pull_request":{"url":"https://api.github.com/repos/mumuki/mumuki-atheneum/pulls/610","id":74672406,"html_url":"https://github.com/mumuki/mumuki-atheneum/pull/610","diff_url":"https://github.com/mumuki/mumuki-atheneum/pull/610.diff","patch_url":"https://github.com/mumuki/mumuki-atheneum/pull/610.patch","issue_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/issues/610","number":610,"state":"open","locked":false,"title":"Don't focus in editor when editor bottom","user":{"login":"aguspina","id":4105740,"avatar_url":"https://avatars.githubusercontent.com/u/4105740?v=3","gravatar_id":"","url":"https://api.github.com/users/aguspina","html_url":"https://github.com/aguspina","followers_url":"https://api.github.com/users/aguspina/followers","following_url":"https://api.github.com/users/aguspina/following{/other_user}","gists_url":"https://api.github.com/users/aguspina/gists{/gist_id}","starred_url":"https://api.github.com/users/aguspina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aguspina/subscriptions","organizations_url":"https://api.github.com/users/aguspina/orgs","repos_url":"https://api.github.com/users/aguspina/repos","events_url":"https://api.github.com/users/aguspina/events{/privacy}","received_events_url":"https://api.github.com/users/aguspina/received_events","type":"User","site_admin":false},"body":"Fixes #481 ","created_at":"2016-06-21T19:39:05Z","updated_at":"2016-06-21T19:55:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6150d4dac2bb5bf0f70083536a04c502fde33442","assignee":{"login":"fedescarpa","id":1039278,"avatar_url":"https://avatars.githubusercontent.com/u/1039278?v=3","gravatar_id":"","url":"https://api.github.com/users/fedescarpa","html_url":"https://github.com/fedescarpa","followers_url":"https://api.github.com/users/fedescarpa/followers","following_url":"https://api.github.com/users/fedescarpa/following{/other_user}","gists_url":"https://api.github.com/users/fedescarpa/gists{/gist_id}","starred_url":"https://api.github.com/users/fedescarpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedescarpa/subscriptions","organizations_url":"https://api.github.com/users/fedescarpa/orgs","repos_url":"https://api.github.com/users/fedescarpa/repos","events_url":"https://api.github.com/users/fedescarpa/events{/privacy}","received_events_url":"https://api.github.com/users/fedescarpa/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/pulls/610/commits","review_comments_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/pulls/610/comments","review_comment_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/issues/610/comments","statuses_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/statuses/04402aef303bf6112ec7311cd17898ed3a6efcb3","head":{"label":"mumuki:481-focus-editor-bottom","ref":"481-focus-editor-bottom","sha":"04402aef303bf6112ec7311cd17898ed3a6efcb3","user":{"login":"mumuki","id":10385254,"avatar_url":"https://avatars.githubusercontent.com/u/10385254?v=3","gravatar_id":"","url":"https://api.github.com/users/mumuki","html_url":"https://github.com/mumuki","followers_url":"https://api.github.com/users/mumuki/followers","following_url":"https://api.github.com/users/mumuki/following{/other_user}","gists_url":"https://api.github.com/users/mumuki/gists{/gist_id}","starred_url":"https://api.github.com/users/mumuki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mumuki/subscriptions","organizations_url":"https://api.github.com/users/mumuki/orgs","repos_url":"https://api.github.com/users/mumuki/repos","events_url":"https://api.github.com/users/mumuki/events{/privacy}","received_events_url":"https://api.github.com/users/mumuki/received_events","type":"Organization","site_admin":false},"repo":{"id":27654303,"name":"mumuki-atheneum","full_name":"mumuki/mumuki-atheneum","owner":{"login":"mumuki","id":10385254,"avatar_url":"https://avatars.githubusercontent.com/u/10385254?v=3","gravatar_id":"","url":"https://api.github.com/users/mumuki","html_url":"https://github.com/mumuki","followers_url":"https://api.github.com/users/mumuki/followers","following_url":"https://api.github.com/users/mumuki/following{/other_user}","gists_url":"https://api.github.com/users/mumuki/gists{/gist_id}","starred_url":"https://api.github.com/users/mumuki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mumuki/subscriptions","organizations_url":"https://api.github.com/users/mumuki/orgs","repos_url":"https://api.github.com/users/mumuki/repos","events_url":"https://api.github.com/users/mumuki/events{/privacy}","received_events_url":"https://api.github.com/users/mumuki/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mumuki/mumuki-atheneum","description":"Exercises solving webapp for the Mumuki platform","fork":false,"url":"https://api.github.com/repos/mumuki/mumuki-atheneum","forks_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/forks","keys_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/teams","hooks_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/hooks","issue_events_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/issues/events{/number}","events_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/events","assignees_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/assignees{/user}","branches_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/branches{/branch}","tags_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/tags","blobs_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/git/refs{/sha}","trees_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/statuses/{sha}","languages_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/languages","stargazers_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/stargazers","contributors_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/contributors","subscribers_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/subscribers","subscription_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/subscription","commits_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/commits{/sha}","git_commits_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/git/commits{/sha}","comments_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/comments{/number}","issue_comment_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/issues/comments{/number}","contents_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/contents/{+path}","compare_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/merges","archive_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/downloads","issues_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/issues{/number}","pulls_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/pulls{/number}","milestones_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/milestones{/number}","notifications_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/labels{/name}","releases_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/releases{/id}","deployments_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/deployments","created_at":"2014-12-07T00:31:42Z","updated_at":"2016-03-21T02:56:18Z","pushed_at":"2016-06-21T19:39:05Z","git_url":"git://github.com/mumuki/mumuki-atheneum.git","ssh_url":"git@github.com:mumuki/mumuki-atheneum.git","clone_url":"https://github.com/mumuki/mumuki-atheneum.git","svn_url":"https://github.com/mumuki/mumuki-atheneum","homepage":"http://mumuki.io","size":11131,"stargazers_count":104,"watchers_count":104,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":65,"forks":15,"open_issues":65,"watchers":104,"default_branch":"master"}},"base":{"label":"mumuki:master","ref":"master","sha":"00f575589a54bf50317948763fef10a94181623b","user":{"login":"mumuki","id":10385254,"avatar_url":"https://avatars.githubusercontent.com/u/10385254?v=3","gravatar_id":"","url":"https://api.github.com/users/mumuki","html_url":"https://github.com/mumuki","followers_url":"https://api.github.com/users/mumuki/followers","following_url":"https://api.github.com/users/mumuki/following{/other_user}","gists_url":"https://api.github.com/users/mumuki/gists{/gist_id}","starred_url":"https://api.github.com/users/mumuki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mumuki/subscriptions","organizations_url":"https://api.github.com/users/mumuki/orgs","repos_url":"https://api.github.com/users/mumuki/repos","events_url":"https://api.github.com/users/mumuki/events{/privacy}","received_events_url":"https://api.github.com/users/mumuki/received_events","type":"Organization","site_admin":false},"repo":{"id":27654303,"name":"mumuki-atheneum","full_name":"mumuki/mumuki-atheneum","owner":{"login":"mumuki","id":10385254,"avatar_url":"https://avatars.githubusercontent.com/u/10385254?v=3","gravatar_id":"","url":"https://api.github.com/users/mumuki","html_url":"https://github.com/mumuki","followers_url":"https://api.github.com/users/mumuki/followers","following_url":"https://api.github.com/users/mumuki/following{/other_user}","gists_url":"https://api.github.com/users/mumuki/gists{/gist_id}","starred_url":"https://api.github.com/users/mumuki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mumuki/subscriptions","organizations_url":"https://api.github.com/users/mumuki/orgs","repos_url":"https://api.github.com/users/mumuki/repos","events_url":"https://api.github.com/users/mumuki/events{/privacy}","received_events_url":"https://api.github.com/users/mumuki/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mumuki/mumuki-atheneum","description":"Exercises solving webapp for the Mumuki platform","fork":false,"url":"https://api.github.com/repos/mumuki/mumuki-atheneum","forks_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/forks","keys_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/teams","hooks_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/hooks","issue_events_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/issues/events{/number}","events_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/events","assignees_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/assignees{/user}","branches_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/branches{/branch}","tags_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/tags","blobs_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/git/refs{/sha}","trees_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/statuses/{sha}","languages_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/languages","stargazers_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/stargazers","contributors_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/contributors","subscribers_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/subscribers","subscription_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/subscription","commits_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/commits{/sha}","git_commits_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/git/commits{/sha}","comments_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/comments{/number}","issue_comment_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/issues/comments{/number}","contents_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/contents/{+path}","compare_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/merges","archive_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/downloads","issues_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/issues{/number}","pulls_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/pulls{/number}","milestones_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/milestones{/number}","notifications_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/labels{/name}","releases_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/releases{/id}","deployments_url":"https://api.github.com/repos/mumuki/mumuki-atheneum/deployments","created_at":"2014-12-07T00:31:42Z","updated_at":"2016-03-21T02:56:18Z","pushed_at":"2016-06-21T19:39:05Z","git_url":"git://github.com/mumuki/mumuki-atheneum.git","ssh_url":"git@github.com:mumuki/mumuki-atheneum.git","clone_url":"https://github.com/mumuki/mumuki-atheneum.git","svn_url":"https://github.com/mumuki/mumuki-atheneum","homepage":"http://mumuki.io","size":11131,"stargazers_count":104,"watchers_count":104,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":65,"forks":15,"open_issues":65,"watchers":104,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mumuki/mumuki-atheneum/pulls/610"},"html":{"href":"https://github.com/mumuki/mumuki-atheneum/pull/610"},"issue":{"href":"https://api.github.com/repos/mumuki/mumuki-atheneum/issues/610"},"comments":{"href":"https://api.github.com/repos/mumuki/mumuki-atheneum/issues/610/comments"},"review_comments":{"href":"https://api.github.com/repos/mumuki/mumuki-atheneum/pulls/610/comments"},"review_comment":{"href":"https://api.github.com/repos/mumuki/mumuki-atheneum/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mumuki/mumuki-atheneum/pulls/610/commits"},"statuses":{"href":"https://api.github.com/repos/mumuki/mumuki-atheneum/statuses/04402aef303bf6112ec7311cd17898ed3a6efcb3"}}}}
{"actor":{"display_login":"flbulgarelli"}}