{"action":"created","comment":{"url":"https://api.github.com/repos/lotus/router/pulls/comments/26466787","id":26466787,"diff_hunk":"@@ -221,6 +221,22 @@ def endpoint\n         def separator\n           @options[:separator]\n         end\n+\n+        # Resource controller name\n+        #\n+        # @example\n+        #   Lotus::Router.new do\n+        #     resources 'flowers', controller: 'rocks'\n+        #   end\n+        #\n+        #   # It will mount path 'flowers/new' to Rocks::New instead of Flowers::New\n+        #   # Same for other action names\n+        #\n+        # @api private\n+        # @since 0.2.1","path":"lib/lotus/routing/resource/action.rb","position":25,"original_position":25,"commit_id":"40b236dc36bea3596f690e8eb96655e6a5aa41a0","original_commit_id":"40b236dc36bea3596f690e8eb96655e6a5aa41a0","user":{"login":"jodosha","id":5089,"avatar_url":"https://avatars.githubusercontent.com/u/5089?v=3","gravatar_id":"","url":"https://api.github.com/users/jodosha","html_url":"https://github.com/jodosha","followers_url":"https://api.github.com/users/jodosha/followers","following_url":"https://api.github.com/users/jodosha/following{/other_user}","gists_url":"https://api.github.com/users/jodosha/gists{/gist_id}","starred_url":"https://api.github.com/users/jodosha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodosha/subscriptions","organizations_url":"https://api.github.com/users/jodosha/orgs","repos_url":"https://api.github.com/users/jodosha/repos","events_url":"https://api.github.com/users/jodosha/events{/privacy}","received_events_url":"https://api.github.com/users/jodosha/received_events","type":"User","site_admin":false},"body":"@gzigzigzeo @joneslee85 this should be `@since x.x.x`","created_at":"2015-03-16T08:23:04Z","updated_at":"2015-03-16T08:23:04Z","html_url":"https://github.com/lotus/router/pull/45#discussion_r26466787","pull_request_url":"https://api.github.com/repos/lotus/router/pulls/45","_links":{"self":{"href":"https://api.github.com/repos/lotus/router/pulls/comments/26466787"},"html":{"href":"https://github.com/lotus/router/pull/45#discussion_r26466787"},"pull_request":{"href":"https://api.github.com/repos/lotus/router/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/lotus/router/pulls/45","id":30565541,"html_url":"https://github.com/lotus/router/pull/45","diff_url":"https://github.com/lotus/router/pull/45.diff","patch_url":"https://github.com/lotus/router/pull/45.patch","issue_url":"https://api.github.com/repos/lotus/router/issues/45","number":45,"state":"closed","locked":false,"title":"Controller name options for #resource/#resources","user":{"login":"gzigzigzeo","id":27830,"avatar_url":"https://avatars.githubusercontent.com/u/27830?v=3","gravatar_id":"","url":"https://api.github.com/users/gzigzigzeo","html_url":"https://github.com/gzigzigzeo","followers_url":"https://api.github.com/users/gzigzigzeo/followers","following_url":"https://api.github.com/users/gzigzigzeo/following{/other_user}","gists_url":"https://api.github.com/users/gzigzigzeo/gists{/gist_id}","starred_url":"https://api.github.com/users/gzigzigzeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gzigzigzeo/subscriptions","organizations_url":"https://api.github.com/users/gzigzigzeo/orgs","repos_url":"https://api.github.com/users/gzigzigzeo/repos","events_url":"https://api.github.com/users/gzigzigzeo/events{/privacy}","received_events_url":"https://api.github.com/users/gzigzigzeo/received_events","type":"User","site_admin":false},"body":"resource 'users', controller: 'profile'\r\n\r\nNow produces:\r\n\r\nget '/users' to: Web::Controller::Profile::Index\r\nget '/users/new' to: Web::Controller::Profile::New","created_at":"2015-03-05T15:24:50Z","updated_at":"2015-03-16T08:23:04Z","closed_at":"2015-03-15T04:41:08Z","merged_at":"2015-03-15T04:41:08Z","merge_commit_sha":"33e619c2e0603b1c9cb3d41712834e111cba5116","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lotus/router/pulls/45/commits","review_comments_url":"https://api.github.com/repos/lotus/router/pulls/45/comments","review_comment_url":"https://api.github.com/repos/lotus/router/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lotus/router/issues/45/comments","statuses_url":"https://api.github.com/repos/lotus/router/statuses/40b236dc36bea3596f690e8eb96655e6a5aa41a0","head":{"label":"gzigzigzeo:master","ref":"master","sha":"40b236dc36bea3596f690e8eb96655e6a5aa41a0","user":{"login":"gzigzigzeo","id":27830,"avatar_url":"https://avatars.githubusercontent.com/u/27830?v=3","gravatar_id":"","url":"https://api.github.com/users/gzigzigzeo","html_url":"https://github.com/gzigzigzeo","followers_url":"https://api.github.com/users/gzigzigzeo/followers","following_url":"https://api.github.com/users/gzigzigzeo/following{/other_user}","gists_url":"https://api.github.com/users/gzigzigzeo/gists{/gist_id}","starred_url":"https://api.github.com/users/gzigzigzeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gzigzigzeo/subscriptions","organizations_url":"https://api.github.com/users/gzigzigzeo/orgs","repos_url":"https://api.github.com/users/gzigzigzeo/repos","events_url":"https://api.github.com/users/gzigzigzeo/events{/privacy}","received_events_url":"https://api.github.com/users/gzigzigzeo/received_events","type":"User","site_admin":false},"repo":{"id":31690516,"name":"router","full_name":"gzigzigzeo/router","owner":{"login":"gzigzigzeo","id":27830,"avatar_url":"https://avatars.githubusercontent.com/u/27830?v=3","gravatar_id":"","url":"https://api.github.com/users/gzigzigzeo","html_url":"https://github.com/gzigzigzeo","followers_url":"https://api.github.com/users/gzigzigzeo/followers","following_url":"https://api.github.com/users/gzigzigzeo/following{/other_user}","gists_url":"https://api.github.com/users/gzigzigzeo/gists{/gist_id}","starred_url":"https://api.github.com/users/gzigzigzeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gzigzigzeo/subscriptions","organizations_url":"https://api.github.com/users/gzigzigzeo/orgs","repos_url":"https://api.github.com/users/gzigzigzeo/repos","events_url":"https://api.github.com/users/gzigzigzeo/events{/privacy}","received_events_url":"https://api.github.com/users/gzigzigzeo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gzigzigzeo/router","description":"Ruby HTTP router for Lotus","fork":true,"url":"https://api.github.com/repos/gzigzigzeo/router","forks_url":"https://api.github.com/repos/gzigzigzeo/router/forks","keys_url":"https://api.github.com/repos/gzigzigzeo/router/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gzigzigzeo/router/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gzigzigzeo/router/teams","hooks_url":"https://api.github.com/repos/gzigzigzeo/router/hooks","issue_events_url":"https://api.github.com/repos/gzigzigzeo/router/issues/events{/number}","events_url":"https://api.github.com/repos/gzigzigzeo/router/events","assignees_url":"https://api.github.com/repos/gzigzigzeo/router/assignees{/user}","branches_url":"https://api.github.com/repos/gzigzigzeo/router/branches{/branch}","tags_url":"https://api.github.com/repos/gzigzigzeo/router/tags","blobs_url":"https://api.github.com/repos/gzigzigzeo/router/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gzigzigzeo/router/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gzigzigzeo/router/git/refs{/sha}","trees_url":"https://api.github.com/repos/gzigzigzeo/router/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gzigzigzeo/router/statuses/{sha}","languages_url":"https://api.github.com/repos/gzigzigzeo/router/languages","stargazers_url":"https://api.github.com/repos/gzigzigzeo/router/stargazers","contributors_url":"https://api.github.com/repos/gzigzigzeo/router/contributors","subscribers_url":"https://api.github.com/repos/gzigzigzeo/router/subscribers","subscription_url":"https://api.github.com/repos/gzigzigzeo/router/subscription","commits_url":"https://api.github.com/repos/gzigzigzeo/router/commits{/sha}","git_commits_url":"https://api.github.com/repos/gzigzigzeo/router/git/commits{/sha}","comments_url":"https://api.github.com/repos/gzigzigzeo/router/comments{/number}","issue_comment_url":"https://api.github.com/repos/gzigzigzeo/router/issues/comments{/number}","contents_url":"https://api.github.com/repos/gzigzigzeo/router/contents/{+path}","compare_url":"https://api.github.com/repos/gzigzigzeo/router/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gzigzigzeo/router/merges","archive_url":"https://api.github.com/repos/gzigzigzeo/router/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gzigzigzeo/router/downloads","issues_url":"https://api.github.com/repos/gzigzigzeo/router/issues{/number}","pulls_url":"https://api.github.com/repos/gzigzigzeo/router/pulls{/number}","milestones_url":"https://api.github.com/repos/gzigzigzeo/router/milestones{/number}","notifications_url":"https://api.github.com/repos/gzigzigzeo/router/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gzigzigzeo/router/labels{/name}","releases_url":"https://api.github.com/repos/gzigzigzeo/router/releases{/id}","created_at":"2015-03-05T02:00:38Z","updated_at":"2015-03-05T15:19:20Z","pushed_at":"2015-03-05T15:19:20Z","git_url":"git://github.com/gzigzigzeo/router.git","ssh_url":"git@github.com:gzigzigzeo/router.git","clone_url":"https://github.com/gzigzigzeo/router.git","svn_url":"https://github.com/gzigzigzeo/router","homepage":"http://lotusrb.org","size":315,"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":"lotus:master","ref":"master","sha":"95db38bdc9ffb0f6b27cf0a1761056003657c1a4","user":{"login":"lotus","id":3210273,"avatar_url":"https://avatars.githubusercontent.com/u/3210273?v=3","gravatar_id":"","url":"https://api.github.com/users/lotus","html_url":"https://github.com/lotus","followers_url":"https://api.github.com/users/lotus/followers","following_url":"https://api.github.com/users/lotus/following{/other_user}","gists_url":"https://api.github.com/users/lotus/gists{/gist_id}","starred_url":"https://api.github.com/users/lotus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lotus/subscriptions","organizations_url":"https://api.github.com/users/lotus/orgs","repos_url":"https://api.github.com/users/lotus/repos","events_url":"https://api.github.com/users/lotus/events{/privacy}","received_events_url":"https://api.github.com/users/lotus/received_events","type":"Organization","site_admin":false},"repo":{"id":10696882,"name":"router","full_name":"lotus/router","owner":{"login":"lotus","id":3210273,"avatar_url":"https://avatars.githubusercontent.com/u/3210273?v=3","gravatar_id":"","url":"https://api.github.com/users/lotus","html_url":"https://github.com/lotus","followers_url":"https://api.github.com/users/lotus/followers","following_url":"https://api.github.com/users/lotus/following{/other_user}","gists_url":"https://api.github.com/users/lotus/gists{/gist_id}","starred_url":"https://api.github.com/users/lotus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lotus/subscriptions","organizations_url":"https://api.github.com/users/lotus/orgs","repos_url":"https://api.github.com/users/lotus/repos","events_url":"https://api.github.com/users/lotus/events{/privacy}","received_events_url":"https://api.github.com/users/lotus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lotus/router","description":"Ruby HTTP router for Lotus","fork":false,"url":"https://api.github.com/repos/lotus/router","forks_url":"https://api.github.com/repos/lotus/router/forks","keys_url":"https://api.github.com/repos/lotus/router/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lotus/router/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lotus/router/teams","hooks_url":"https://api.github.com/repos/lotus/router/hooks","issue_events_url":"https://api.github.com/repos/lotus/router/issues/events{/number}","events_url":"https://api.github.com/repos/lotus/router/events","assignees_url":"https://api.github.com/repos/lotus/router/assignees{/user}","branches_url":"https://api.github.com/repos/lotus/router/branches{/branch}","tags_url":"https://api.github.com/repos/lotus/router/tags","blobs_url":"https://api.github.com/repos/lotus/router/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lotus/router/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lotus/router/git/refs{/sha}","trees_url":"https://api.github.com/repos/lotus/router/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lotus/router/statuses/{sha}","languages_url":"https://api.github.com/repos/lotus/router/languages","stargazers_url":"https://api.github.com/repos/lotus/router/stargazers","contributors_url":"https://api.github.com/repos/lotus/router/contributors","subscribers_url":"https://api.github.com/repos/lotus/router/subscribers","subscription_url":"https://api.github.com/repos/lotus/router/subscription","commits_url":"https://api.github.com/repos/lotus/router/commits{/sha}","git_commits_url":"https://api.github.com/repos/lotus/router/git/commits{/sha}","comments_url":"https://api.github.com/repos/lotus/router/comments{/number}","issue_comment_url":"https://api.github.com/repos/lotus/router/issues/comments{/number}","contents_url":"https://api.github.com/repos/lotus/router/contents/{+path}","compare_url":"https://api.github.com/repos/lotus/router/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lotus/router/merges","archive_url":"https://api.github.com/repos/lotus/router/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lotus/router/downloads","issues_url":"https://api.github.com/repos/lotus/router/issues{/number}","pulls_url":"https://api.github.com/repos/lotus/router/pulls{/number}","milestones_url":"https://api.github.com/repos/lotus/router/milestones{/number}","notifications_url":"https://api.github.com/repos/lotus/router/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lotus/router/labels{/name}","releases_url":"https://api.github.com/repos/lotus/router/releases{/id}","created_at":"2013-06-14T20:07:26Z","updated_at":"2015-03-16T07:40:06Z","pushed_at":"2015-03-15T04:41:08Z","git_url":"git://github.com/lotus/router.git","ssh_url":"git@github.com:lotus/router.git","clone_url":"https://github.com/lotus/router.git","svn_url":"https://github.com/lotus/router","homepage":"http://lotusrb.org","size":1092,"stargazers_count":203,"watchers_count":203,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":2,"forks":41,"open_issues":2,"watchers":203,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lotus/router/pulls/45"},"html":{"href":"https://github.com/lotus/router/pull/45"},"issue":{"href":"https://api.github.com/repos/lotus/router/issues/45"},"comments":{"href":"https://api.github.com/repos/lotus/router/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/lotus/router/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/lotus/router/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lotus/router/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/lotus/router/statuses/40b236dc36bea3596f690e8eb96655e6a5aa41a0"}}}}