{"action":"closed","number":27291,"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/27291","id":96857788,"html_url":"https://github.com/rails/rails/pull/27291","diff_url":"https://github.com/rails/rails/pull/27291.diff","patch_url":"https://github.com/rails/rails/pull/27291.patch","issue_url":"https://api.github.com/repos/rails/rails/issues/27291","number":27291,"state":"closed","locked":false,"title":"support callable in `routes.default_url_options`","user":{"login":"ignatiusreza","id":667726,"avatar_url":"https://avatars.githubusercontent.com/u/667726?v=3","gravatar_id":"","url":"https://api.github.com/users/ignatiusreza","html_url":"https://github.com/ignatiusreza","followers_url":"https://api.github.com/users/ignatiusreza/followers","following_url":"https://api.github.com/users/ignatiusreza/following{/other_user}","gists_url":"https://api.github.com/users/ignatiusreza/gists{/gist_id}","starred_url":"https://api.github.com/users/ignatiusreza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignatiusreza/subscriptions","organizations_url":"https://api.github.com/users/ignatiusreza/orgs","repos_url":"https://api.github.com/users/ignatiusreza/repos","events_url":"https://api.github.com/users/ignatiusreza/events{/privacy}","received_events_url":"https://api.github.com/users/ignatiusreza/received_events","type":"User","site_admin":false},"body":"to be used when we want to have defaults that are lazily evaluated.\r\n\r\nfor example, when we want to have `I18n.locale` as part as the path, and we want it to reflect the locale that currently is active when the url is generated\r\n\r\n`#default_url_options` in controller solve cases when we're generating the url in controller and views, but it doesn't handle cases when `Rails.application.routes.url_helpers` are included in other classes, which this commit address","created_at":"2016-12-07T04:40:28Z","updated_at":"2016-12-08T18:01:46Z","closed_at":"2016-12-08T18:01:46Z","merged_at":null,"merge_commit_sha":"a910eec1ae180f1561c0a0cb26a79d62c483d034","assignee":{"login":"eileencodes","id":1080678,"avatar_url":"https://avatars.githubusercontent.com/u/1080678?v=3","gravatar_id":"","url":"https://api.github.com/users/eileencodes","html_url":"https://github.com/eileencodes","followers_url":"https://api.github.com/users/eileencodes/followers","following_url":"https://api.github.com/users/eileencodes/following{/other_user}","gists_url":"https://api.github.com/users/eileencodes/gists{/gist_id}","starred_url":"https://api.github.com/users/eileencodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eileencodes/subscriptions","organizations_url":"https://api.github.com/users/eileencodes/orgs","repos_url":"https://api.github.com/users/eileencodes/repos","events_url":"https://api.github.com/users/eileencodes/events{/privacy}","received_events_url":"https://api.github.com/users/eileencodes/received_events","type":"User","site_admin":false},"assignees":[{"login":"eileencodes","id":1080678,"avatar_url":"https://avatars.githubusercontent.com/u/1080678?v=3","gravatar_id":"","url":"https://api.github.com/users/eileencodes","html_url":"https://github.com/eileencodes","followers_url":"https://api.github.com/users/eileencodes/followers","following_url":"https://api.github.com/users/eileencodes/following{/other_user}","gists_url":"https://api.github.com/users/eileencodes/gists{/gist_id}","starred_url":"https://api.github.com/users/eileencodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eileencodes/subscriptions","organizations_url":"https://api.github.com/users/eileencodes/orgs","repos_url":"https://api.github.com/users/eileencodes/repos","events_url":"https://api.github.com/users/eileencodes/events{/privacy}","received_events_url":"https://api.github.com/users/eileencodes/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/rails/rails/pulls/27291/commits","review_comments_url":"https://api.github.com/repos/rails/rails/pulls/27291/comments","review_comment_url":"https://api.github.com/repos/rails/rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rails/rails/issues/27291/comments","statuses_url":"https://api.github.com/repos/rails/rails/statuses/5e0f3b0db990d2c3183b873a7e862ebce7205cc8","head":{"label":"ignatiusreza:callable_default_url_options","ref":"callable_default_url_options","sha":"5e0f3b0db990d2c3183b873a7e862ebce7205cc8","user":{"login":"ignatiusreza","id":667726,"avatar_url":"https://avatars.githubusercontent.com/u/667726?v=3","gravatar_id":"","url":"https://api.github.com/users/ignatiusreza","html_url":"https://github.com/ignatiusreza","followers_url":"https://api.github.com/users/ignatiusreza/followers","following_url":"https://api.github.com/users/ignatiusreza/following{/other_user}","gists_url":"https://api.github.com/users/ignatiusreza/gists{/gist_id}","starred_url":"https://api.github.com/users/ignatiusreza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignatiusreza/subscriptions","organizations_url":"https://api.github.com/users/ignatiusreza/orgs","repos_url":"https://api.github.com/users/ignatiusreza/repos","events_url":"https://api.github.com/users/ignatiusreza/events{/privacy}","received_events_url":"https://api.github.com/users/ignatiusreza/received_events","type":"User","site_admin":false},"repo":{"id":32310754,"name":"rails","full_name":"ignatiusreza/rails","owner":{"login":"ignatiusreza","id":667726,"avatar_url":"https://avatars.githubusercontent.com/u/667726?v=3","gravatar_id":"","url":"https://api.github.com/users/ignatiusreza","html_url":"https://github.com/ignatiusreza","followers_url":"https://api.github.com/users/ignatiusreza/followers","following_url":"https://api.github.com/users/ignatiusreza/following{/other_user}","gists_url":"https://api.github.com/users/ignatiusreza/gists{/gist_id}","starred_url":"https://api.github.com/users/ignatiusreza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignatiusreza/subscriptions","organizations_url":"https://api.github.com/users/ignatiusreza/orgs","repos_url":"https://api.github.com/users/ignatiusreza/repos","events_url":"https://api.github.com/users/ignatiusreza/events{/privacy}","received_events_url":"https://api.github.com/users/ignatiusreza/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ignatiusreza/rails","description":"Ruby on Rails","fork":true,"url":"https://api.github.com/repos/ignatiusreza/rails","forks_url":"https://api.github.com/repos/ignatiusreza/rails/forks","keys_url":"https://api.github.com/repos/ignatiusreza/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ignatiusreza/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ignatiusreza/rails/teams","hooks_url":"https://api.github.com/repos/ignatiusreza/rails/hooks","issue_events_url":"https://api.github.com/repos/ignatiusreza/rails/issues/events{/number}","events_url":"https://api.github.com/repos/ignatiusreza/rails/events","assignees_url":"https://api.github.com/repos/ignatiusreza/rails/assignees{/user}","branches_url":"https://api.github.com/repos/ignatiusreza/rails/branches{/branch}","tags_url":"https://api.github.com/repos/ignatiusreza/rails/tags","blobs_url":"https://api.github.com/repos/ignatiusreza/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ignatiusreza/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ignatiusreza/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/ignatiusreza/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ignatiusreza/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/ignatiusreza/rails/languages","stargazers_url":"https://api.github.com/repos/ignatiusreza/rails/stargazers","contributors_url":"https://api.github.com/repos/ignatiusreza/rails/contributors","subscribers_url":"https://api.github.com/repos/ignatiusreza/rails/subscribers","subscription_url":"https://api.github.com/repos/ignatiusreza/rails/subscription","commits_url":"https://api.github.com/repos/ignatiusreza/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/ignatiusreza/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/ignatiusreza/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/ignatiusreza/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/ignatiusreza/rails/contents/{+path}","compare_url":"https://api.github.com/repos/ignatiusreza/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ignatiusreza/rails/merges","archive_url":"https://api.github.com/repos/ignatiusreza/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ignatiusreza/rails/downloads","issues_url":"https://api.github.com/repos/ignatiusreza/rails/issues{/number}","pulls_url":"https://api.github.com/repos/ignatiusreza/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/ignatiusreza/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/ignatiusreza/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ignatiusreza/rails/labels{/name}","releases_url":"https://api.github.com/repos/ignatiusreza/rails/releases{/id}","deployments_url":"https://api.github.com/repos/ignatiusreza/rails/deployments","created_at":"2015-03-16T08:23:48Z","updated_at":"2016-03-29T00:15:17Z","pushed_at":"2016-12-08T05:57:52Z","git_url":"git://github.com/ignatiusreza/rails.git","ssh_url":"git@github.com:ignatiusreza/rails.git","clone_url":"https://github.com/ignatiusreza/rails.git","svn_url":"https://github.com/ignatiusreza/rails","homepage":"http://rubyonrails.org","size":136691,"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":"3f279977ead48ace1acf53567fd258fe140e3b6f","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}","deployments_url":"https://api.github.com/repos/rails/rails/deployments","created_at":"2008-04-11T02:19:47Z","updated_at":"2016-12-08T17:43:54Z","pushed_at":"2016-12-08T05:58:04Z","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":352311,"stargazers_count":33654,"watchers_count":33654,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":13720,"mirror_url":null,"open_issues_count":1231,"forks":13720,"open_issues":1231,"watchers":33654,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/27291"},"html":{"href":"https://github.com/rails/rails/pull/27291"},"issue":{"href":"https://api.github.com/repos/rails/rails/issues/27291"},"comments":{"href":"https://api.github.com/repos/rails/rails/issues/27291/comments"},"review_comments":{"href":"https://api.github.com/repos/rails/rails/pulls/27291/comments"},"review_comment":{"href":"https://api.github.com/repos/rails/rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rails/rails/pulls/27291/commits"},"statuses":{"href":"https://api.github.com/repos/rails/rails/statuses/5e0f3b0db990d2c3183b873a7e862ebce7205cc8"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":6,"review_comments":0,"commits":1,"additions":118,"deletions":6,"changed_files":6}}
{"actor":{"display_login":"rafaelfranca"}}