{"action":"opened","number":22448,"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/22448","id":52075206,"html_url":"https://github.com/rails/rails/pull/22448","diff_url":"https://github.com/rails/rails/pull/22448.diff","patch_url":"https://github.com/rails/rails/pull/22448.patch","issue_url":"https://api.github.com/repos/rails/rails/issues/22448","number":22448,"state":"open","locked":false,"title":"call one heavy method instead of 3 in a string","user":{"login":"lucianosousa","id":44833,"avatar_url":"https://avatars.githubusercontent.com/u/44833?v=3","gravatar_id":"","url":"https://api.github.com/users/lucianosousa","html_url":"https://github.com/lucianosousa","followers_url":"https://api.github.com/users/lucianosousa/followers","following_url":"https://api.github.com/users/lucianosousa/following{/other_user}","gists_url":"https://api.github.com/users/lucianosousa/gists{/gist_id}","starred_url":"https://api.github.com/users/lucianosousa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucianosousa/subscriptions","organizations_url":"https://api.github.com/users/lucianosousa/orgs","repos_url":"https://api.github.com/users/lucianosousa/repos","events_url":"https://api.github.com/users/lucianosousa/events{/privacy}","received_events_url":"https://api.github.com/users/lucianosousa/received_events","type":"User","site_admin":false},"body":"Looks like `html_safe` is called in a empty string just to use `safe_concat` in the next two string merges.\r\nWe can ignore these two calls - and `html_safe` in favor of use `raw` in the method output.","created_at":"2015-11-30T00:08:45Z","updated_at":"2015-11-30T00:08:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rails/rails/pulls/22448/commits","review_comments_url":"https://api.github.com/repos/rails/rails/pulls/22448/comments","review_comment_url":"https://api.github.com/repos/rails/rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rails/rails/issues/22448/comments","statuses_url":"https://api.github.com/repos/rails/rails/statuses/2d95a355480d7036dbe8f591d0cc188ed998b985","head":{"label":"lucianosousa:patch-2","ref":"patch-2","sha":"2d95a355480d7036dbe8f591d0cc188ed998b985","user":{"login":"lucianosousa","id":44833,"avatar_url":"https://avatars.githubusercontent.com/u/44833?v=3","gravatar_id":"","url":"https://api.github.com/users/lucianosousa","html_url":"https://github.com/lucianosousa","followers_url":"https://api.github.com/users/lucianosousa/followers","following_url":"https://api.github.com/users/lucianosousa/following{/other_user}","gists_url":"https://api.github.com/users/lucianosousa/gists{/gist_id}","starred_url":"https://api.github.com/users/lucianosousa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucianosousa/subscriptions","organizations_url":"https://api.github.com/users/lucianosousa/orgs","repos_url":"https://api.github.com/users/lucianosousa/repos","events_url":"https://api.github.com/users/lucianosousa/events{/privacy}","received_events_url":"https://api.github.com/users/lucianosousa/received_events","type":"User","site_admin":false},"repo":{"id":47044448,"name":"rails","full_name":"lucianosousa/rails","owner":{"login":"lucianosousa","id":44833,"avatar_url":"https://avatars.githubusercontent.com/u/44833?v=3","gravatar_id":"","url":"https://api.github.com/users/lucianosousa","html_url":"https://github.com/lucianosousa","followers_url":"https://api.github.com/users/lucianosousa/followers","following_url":"https://api.github.com/users/lucianosousa/following{/other_user}","gists_url":"https://api.github.com/users/lucianosousa/gists{/gist_id}","starred_url":"https://api.github.com/users/lucianosousa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucianosousa/subscriptions","organizations_url":"https://api.github.com/users/lucianosousa/orgs","repos_url":"https://api.github.com/users/lucianosousa/repos","events_url":"https://api.github.com/users/lucianosousa/events{/privacy}","received_events_url":"https://api.github.com/users/lucianosousa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lucianosousa/rails","description":"Ruby on Rails","fork":true,"url":"https://api.github.com/repos/lucianosousa/rails","forks_url":"https://api.github.com/repos/lucianosousa/rails/forks","keys_url":"https://api.github.com/repos/lucianosousa/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lucianosousa/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lucianosousa/rails/teams","hooks_url":"https://api.github.com/repos/lucianosousa/rails/hooks","issue_events_url":"https://api.github.com/repos/lucianosousa/rails/issues/events{/number}","events_url":"https://api.github.com/repos/lucianosousa/rails/events","assignees_url":"https://api.github.com/repos/lucianosousa/rails/assignees{/user}","branches_url":"https://api.github.com/repos/lucianosousa/rails/branches{/branch}","tags_url":"https://api.github.com/repos/lucianosousa/rails/tags","blobs_url":"https://api.github.com/repos/lucianosousa/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lucianosousa/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lucianosousa/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/lucianosousa/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lucianosousa/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/lucianosousa/rails/languages","stargazers_url":"https://api.github.com/repos/lucianosousa/rails/stargazers","contributors_url":"https://api.github.com/repos/lucianosousa/rails/contributors","subscribers_url":"https://api.github.com/repos/lucianosousa/rails/subscribers","subscription_url":"https://api.github.com/repos/lucianosousa/rails/subscription","commits_url":"https://api.github.com/repos/lucianosousa/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/lucianosousa/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/lucianosousa/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/lucianosousa/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/lucianosousa/rails/contents/{+path}","compare_url":"https://api.github.com/repos/lucianosousa/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lucianosousa/rails/merges","archive_url":"https://api.github.com/repos/lucianosousa/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lucianosousa/rails/downloads","issues_url":"https://api.github.com/repos/lucianosousa/rails/issues{/number}","pulls_url":"https://api.github.com/repos/lucianosousa/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/lucianosousa/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/lucianosousa/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lucianosousa/rails/labels{/name}","releases_url":"https://api.github.com/repos/lucianosousa/rails/releases{/id}","created_at":"2015-11-29T00:27:01Z","updated_at":"2015-11-29T00:27:36Z","pushed_at":"2015-11-30T00:08:24Z","git_url":"git://github.com/lucianosousa/rails.git","ssh_url":"git@github.com:lucianosousa/rails.git","clone_url":"https://github.com/lucianosousa/rails.git","svn_url":"https://github.com/lucianosousa/rails","homepage":"http://rubyonrails.org","size":119998,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"rails:master","ref":"master","sha":"3f16a098452ee5d447142bd9a6f6045cb1fc83b4","user":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"repo":{"id":8514,"name":"rails","full_name":"rails/rails","owner":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rails/rails","description":"Ruby on Rails","fork":false,"url":"https://api.github.com/repos/rails/rails","forks_url":"https://api.github.com/repos/rails/rails/forks","keys_url":"https://api.github.com/repos/rails/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails/rails/teams","hooks_url":"https://api.github.com/repos/rails/rails/hooks","issue_events_url":"https://api.github.com/repos/rails/rails/issues/events{/number}","events_url":"https://api.github.com/repos/rails/rails/events","assignees_url":"https://api.github.com/repos/rails/rails/assignees{/user}","branches_url":"https://api.github.com/repos/rails/rails/branches{/branch}","tags_url":"https://api.github.com/repos/rails/rails/tags","blobs_url":"https://api.github.com/repos/rails/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/rails/rails/languages","stargazers_url":"https://api.github.com/repos/rails/rails/stargazers","contributors_url":"https://api.github.com/repos/rails/rails/contributors","subscribers_url":"https://api.github.com/repos/rails/rails/subscribers","subscription_url":"https://api.github.com/repos/rails/rails/subscription","commits_url":"https://api.github.com/repos/rails/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/rails/rails/contents/{+path}","compare_url":"https://api.github.com/repos/rails/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails/rails/merges","archive_url":"https://api.github.com/repos/rails/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails/rails/downloads","issues_url":"https://api.github.com/repos/rails/rails/issues{/number}","pulls_url":"https://api.github.com/repos/rails/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/rails/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/rails/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails/rails/labels{/name}","releases_url":"https://api.github.com/repos/rails/rails/releases{/id}","created_at":"2008-04-11T02:19:47Z","updated_at":"2015-11-29T23:23:39Z","pushed_at":"2015-11-29T22:30:49Z","git_url":"git://github.com/rails/rails.git","ssh_url":"git@github.com:rails/rails.git","clone_url":"https://github.com/rails/rails.git","svn_url":"https://github.com/rails/rails","homepage":"http://rubyonrails.org","size":323686,"stargazers_count":28566,"watchers_count":28566,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11553,"mirror_url":null,"open_issues_count":870,"forks":11553,"open_issues":870,"watchers":28566,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/22448"},"html":{"href":"https://github.com/rails/rails/pull/22448"},"issue":{"href":"https://api.github.com/repos/rails/rails/issues/22448"},"comments":{"href":"https://api.github.com/repos/rails/rails/issues/22448/comments"},"review_comments":{"href":"https://api.github.com/repos/rails/rails/pulls/22448/comments"},"review_comment":{"href":"https://api.github.com/repos/rails/rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rails/rails/pulls/22448/commits"},"statuses":{"href":"https://api.github.com/repos/rails/rails/statuses/2d95a355480d7036dbe8f591d0cc188ed998b985"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":4,"changed_files":1}}