{"action":"created","comment":{"url":"https://api.github.com/repos/rubycorns/rorganize.it/pulls/comments/28020202","id":28020202,"diff_hunk":"@@ -7,7 +7,12 @@ class GroupsController < ApplicationController\n   before_action :ensure_member_powers, except: [:index, :show, :new, :create, :destroy]\n \n   def index\n-    @groups = Group.order :name\n+    @groups = Group.where(nil).order :name","path":"app/controllers/groups_controller.rb","position":5,"original_position":5,"commit_id":"ac9bae0bd9147d5ddf1d1950b5dca30c8abf0201","original_commit_id":"ac9bae0bd9147d5ddf1d1950b5dca30c8abf0201","user":{"login":"til","id":11211,"avatar_url":"https://avatars.githubusercontent.com/u/11211?v=3","gravatar_id":"","url":"https://api.github.com/users/til","html_url":"https://github.com/til","followers_url":"https://api.github.com/users/til/followers","following_url":"https://api.github.com/users/til/following{/other_user}","gists_url":"https://api.github.com/users/til/gists{/gist_id}","starred_url":"https://api.github.com/users/til/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/til/subscriptions","organizations_url":"https://api.github.com/users/til/orgs","repos_url":"https://api.github.com/users/til/repos","events_url":"https://api.github.com/users/til/events{/privacy}","received_events_url":"https://api.github.com/users/til/received_events","type":"User","site_admin":false},"body":"What's the point of `where(nil)` - it doesn't make a difference as far as I can see?\r\n\r\nTo get a query for all groups without conditions, you could also use `Group.unscoped`, but since there is the order statement appended anyway, this is not necessary.\r\n\r\nAlso, minor code style remark, I'd use parentheses in `order(:name)`.","created_at":"2015-04-08T22:25:19Z","updated_at":"2015-04-08T22:25:19Z","html_url":"https://github.com/rubycorns/rorganize.it/pull/319#discussion_r28020202","pull_request_url":"https://api.github.com/repos/rubycorns/rorganize.it/pulls/319","_links":{"self":{"href":"https://api.github.com/repos/rubycorns/rorganize.it/pulls/comments/28020202"},"html":{"href":"https://github.com/rubycorns/rorganize.it/pull/319#discussion_r28020202"},"pull_request":{"href":"https://api.github.com/repos/rubycorns/rorganize.it/pulls/319"}}},"pull_request":{"url":"https://api.github.com/repos/rubycorns/rorganize.it/pulls/319","id":31371050,"html_url":"https://github.com/rubycorns/rorganize.it/pull/319","diff_url":"https://github.com/rubycorns/rorganize.it/pull/319.diff","patch_url":"https://github.com/rubycorns/rorganize.it/pull/319.patch","issue_url":"https://api.github.com/repos/rubycorns/rorganize.it/issues/319","number":319,"state":"open","locked":false,"title":"Filters","user":{"login":"lislis","id":1006478,"avatar_url":"https://avatars.githubusercontent.com/u/1006478?v=3","gravatar_id":"","url":"https://api.github.com/users/lislis","html_url":"https://github.com/lislis","followers_url":"https://api.github.com/users/lislis/followers","following_url":"https://api.github.com/users/lislis/following{/other_user}","gists_url":"https://api.github.com/users/lislis/gists{/gist_id}","starred_url":"https://api.github.com/users/lislis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lislis/subscriptions","organizations_url":"https://api.github.com/users/lislis/orgs","repos_url":"https://api.github.com/users/lislis/repos","events_url":"https://api.github.com/users/lislis/events{/privacy}","received_events_url":"https://api.github.com/users/lislis/received_events","type":"User","site_admin":false},"body":"make group filterable by city and country\r\ncloses #182, #171","created_at":"2015-03-17T19:48:30Z","updated_at":"2015-04-08T22:25:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a78cfecb92ed5e7180915338dc187c5a121f4cd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rubycorns/rorganize.it/pulls/319/commits","review_comments_url":"https://api.github.com/repos/rubycorns/rorganize.it/pulls/319/comments","review_comment_url":"https://api.github.com/repos/rubycorns/rorganize.it/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rubycorns/rorganize.it/issues/319/comments","statuses_url":"https://api.github.com/repos/rubycorns/rorganize.it/statuses/ac9bae0bd9147d5ddf1d1950b5dca30c8abf0201","head":{"label":"rubycorns:filters","ref":"filters","sha":"ac9bae0bd9147d5ddf1d1950b5dca30c8abf0201","user":{"login":"rubycorns","id":5863362,"avatar_url":"https://avatars.githubusercontent.com/u/5863362?v=3","gravatar_id":"","url":"https://api.github.com/users/rubycorns","html_url":"https://github.com/rubycorns","followers_url":"https://api.github.com/users/rubycorns/followers","following_url":"https://api.github.com/users/rubycorns/following{/other_user}","gists_url":"https://api.github.com/users/rubycorns/gists{/gist_id}","starred_url":"https://api.github.com/users/rubycorns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubycorns/subscriptions","organizations_url":"https://api.github.com/users/rubycorns/orgs","repos_url":"https://api.github.com/users/rubycorns/repos","events_url":"https://api.github.com/users/rubycorns/events{/privacy}","received_events_url":"https://api.github.com/users/rubycorns/received_events","type":"Organization","site_admin":false},"repo":{"id":11615192,"name":"rorganize.it","full_name":"rubycorns/rorganize.it","owner":{"login":"rubycorns","id":5863362,"avatar_url":"https://avatars.githubusercontent.com/u/5863362?v=3","gravatar_id":"","url":"https://api.github.com/users/rubycorns","html_url":"https://github.com/rubycorns","followers_url":"https://api.github.com/users/rubycorns/followers","following_url":"https://api.github.com/users/rubycorns/following{/other_user}","gists_url":"https://api.github.com/users/rubycorns/gists{/gist_id}","starred_url":"https://api.github.com/users/rubycorns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubycorns/subscriptions","organizations_url":"https://api.github.com/users/rubycorns/orgs","repos_url":"https://api.github.com/users/rubycorns/repos","events_url":"https://api.github.com/users/rubycorns/events{/privacy}","received_events_url":"https://api.github.com/users/rubycorns/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rubycorns/rorganize.it","description":"A web app to coordinate railsgirls project groups","fork":false,"url":"https://api.github.com/repos/rubycorns/rorganize.it","forks_url":"https://api.github.com/repos/rubycorns/rorganize.it/forks","keys_url":"https://api.github.com/repos/rubycorns/rorganize.it/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubycorns/rorganize.it/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubycorns/rorganize.it/teams","hooks_url":"https://api.github.com/repos/rubycorns/rorganize.it/hooks","issue_events_url":"https://api.github.com/repos/rubycorns/rorganize.it/issues/events{/number}","events_url":"https://api.github.com/repos/rubycorns/rorganize.it/events","assignees_url":"https://api.github.com/repos/rubycorns/rorganize.it/assignees{/user}","branches_url":"https://api.github.com/repos/rubycorns/rorganize.it/branches{/branch}","tags_url":"https://api.github.com/repos/rubycorns/rorganize.it/tags","blobs_url":"https://api.github.com/repos/rubycorns/rorganize.it/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubycorns/rorganize.it/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubycorns/rorganize.it/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubycorns/rorganize.it/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubycorns/rorganize.it/statuses/{sha}","languages_url":"https://api.github.com/repos/rubycorns/rorganize.it/languages","stargazers_url":"https://api.github.com/repos/rubycorns/rorganize.it/stargazers","contributors_url":"https://api.github.com/repos/rubycorns/rorganize.it/contributors","subscribers_url":"https://api.github.com/repos/rubycorns/rorganize.it/subscribers","subscription_url":"https://api.github.com/repos/rubycorns/rorganize.it/subscription","commits_url":"https://api.github.com/repos/rubycorns/rorganize.it/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubycorns/rorganize.it/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubycorns/rorganize.it/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubycorns/rorganize.it/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubycorns/rorganize.it/contents/{+path}","compare_url":"https://api.github.com/repos/rubycorns/rorganize.it/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubycorns/rorganize.it/merges","archive_url":"https://api.github.com/repos/rubycorns/rorganize.it/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubycorns/rorganize.it/downloads","issues_url":"https://api.github.com/repos/rubycorns/rorganize.it/issues{/number}","pulls_url":"https://api.github.com/repos/rubycorns/rorganize.it/pulls{/number}","milestones_url":"https://api.github.com/repos/rubycorns/rorganize.it/milestones{/number}","notifications_url":"https://api.github.com/repos/rubycorns/rorganize.it/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubycorns/rorganize.it/labels{/name}","releases_url":"https://api.github.com/repos/rubycorns/rorganize.it/releases{/id}","created_at":"2013-07-23T17:56:12Z","updated_at":"2015-04-08T17:16:50Z","pushed_at":"2015-04-08T17:16:51Z","git_url":"git://github.com/rubycorns/rorganize.it.git","ssh_url":"git@github.com:rubycorns/rorganize.it.git","clone_url":"https://github.com/rubycorns/rorganize.it.git","svn_url":"https://github.com/rubycorns/rorganize.it","homepage":"http://railsgirlsapp.shellyapp.com/","size":8027,"stargazers_count":13,"watchers_count":13,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":30,"forks":8,"open_issues":30,"watchers":13,"default_branch":"master"}},"base":{"label":"rubycorns:master","ref":"master","sha":"e504e1ba1e6f955d17b75ff5d571823eccd03483","user":{"login":"rubycorns","id":5863362,"avatar_url":"https://avatars.githubusercontent.com/u/5863362?v=3","gravatar_id":"","url":"https://api.github.com/users/rubycorns","html_url":"https://github.com/rubycorns","followers_url":"https://api.github.com/users/rubycorns/followers","following_url":"https://api.github.com/users/rubycorns/following{/other_user}","gists_url":"https://api.github.com/users/rubycorns/gists{/gist_id}","starred_url":"https://api.github.com/users/rubycorns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubycorns/subscriptions","organizations_url":"https://api.github.com/users/rubycorns/orgs","repos_url":"https://api.github.com/users/rubycorns/repos","events_url":"https://api.github.com/users/rubycorns/events{/privacy}","received_events_url":"https://api.github.com/users/rubycorns/received_events","type":"Organization","site_admin":false},"repo":{"id":11615192,"name":"rorganize.it","full_name":"rubycorns/rorganize.it","owner":{"login":"rubycorns","id":5863362,"avatar_url":"https://avatars.githubusercontent.com/u/5863362?v=3","gravatar_id":"","url":"https://api.github.com/users/rubycorns","html_url":"https://github.com/rubycorns","followers_url":"https://api.github.com/users/rubycorns/followers","following_url":"https://api.github.com/users/rubycorns/following{/other_user}","gists_url":"https://api.github.com/users/rubycorns/gists{/gist_id}","starred_url":"https://api.github.com/users/rubycorns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubycorns/subscriptions","organizations_url":"https://api.github.com/users/rubycorns/orgs","repos_url":"https://api.github.com/users/rubycorns/repos","events_url":"https://api.github.com/users/rubycorns/events{/privacy}","received_events_url":"https://api.github.com/users/rubycorns/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rubycorns/rorganize.it","description":"A web app to coordinate railsgirls project groups","fork":false,"url":"https://api.github.com/repos/rubycorns/rorganize.it","forks_url":"https://api.github.com/repos/rubycorns/rorganize.it/forks","keys_url":"https://api.github.com/repos/rubycorns/rorganize.it/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubycorns/rorganize.it/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubycorns/rorganize.it/teams","hooks_url":"https://api.github.com/repos/rubycorns/rorganize.it/hooks","issue_events_url":"https://api.github.com/repos/rubycorns/rorganize.it/issues/events{/number}","events_url":"https://api.github.com/repos/rubycorns/rorganize.it/events","assignees_url":"https://api.github.com/repos/rubycorns/rorganize.it/assignees{/user}","branches_url":"https://api.github.com/repos/rubycorns/rorganize.it/branches{/branch}","tags_url":"https://api.github.com/repos/rubycorns/rorganize.it/tags","blobs_url":"https://api.github.com/repos/rubycorns/rorganize.it/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubycorns/rorganize.it/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubycorns/rorganize.it/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubycorns/rorganize.it/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubycorns/rorganize.it/statuses/{sha}","languages_url":"https://api.github.com/repos/rubycorns/rorganize.it/languages","stargazers_url":"https://api.github.com/repos/rubycorns/rorganize.it/stargazers","contributors_url":"https://api.github.com/repos/rubycorns/rorganize.it/contributors","subscribers_url":"https://api.github.com/repos/rubycorns/rorganize.it/subscribers","subscription_url":"https://api.github.com/repos/rubycorns/rorganize.it/subscription","commits_url":"https://api.github.com/repos/rubycorns/rorganize.it/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubycorns/rorganize.it/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubycorns/rorganize.it/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubycorns/rorganize.it/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubycorns/rorganize.it/contents/{+path}","compare_url":"https://api.github.com/repos/rubycorns/rorganize.it/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubycorns/rorganize.it/merges","archive_url":"https://api.github.com/repos/rubycorns/rorganize.it/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubycorns/rorganize.it/downloads","issues_url":"https://api.github.com/repos/rubycorns/rorganize.it/issues{/number}","pulls_url":"https://api.github.com/repos/rubycorns/rorganize.it/pulls{/number}","milestones_url":"https://api.github.com/repos/rubycorns/rorganize.it/milestones{/number}","notifications_url":"https://api.github.com/repos/rubycorns/rorganize.it/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubycorns/rorganize.it/labels{/name}","releases_url":"https://api.github.com/repos/rubycorns/rorganize.it/releases{/id}","created_at":"2013-07-23T17:56:12Z","updated_at":"2015-04-08T17:16:50Z","pushed_at":"2015-04-08T17:16:51Z","git_url":"git://github.com/rubycorns/rorganize.it.git","ssh_url":"git@github.com:rubycorns/rorganize.it.git","clone_url":"https://github.com/rubycorns/rorganize.it.git","svn_url":"https://github.com/rubycorns/rorganize.it","homepage":"http://railsgirlsapp.shellyapp.com/","size":8027,"stargazers_count":13,"watchers_count":13,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":30,"forks":8,"open_issues":30,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rubycorns/rorganize.it/pulls/319"},"html":{"href":"https://github.com/rubycorns/rorganize.it/pull/319"},"issue":{"href":"https://api.github.com/repos/rubycorns/rorganize.it/issues/319"},"comments":{"href":"https://api.github.com/repos/rubycorns/rorganize.it/issues/319/comments"},"review_comments":{"href":"https://api.github.com/repos/rubycorns/rorganize.it/pulls/319/comments"},"review_comment":{"href":"https://api.github.com/repos/rubycorns/rorganize.it/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rubycorns/rorganize.it/pulls/319/commits"},"statuses":{"href":"https://api.github.com/repos/rubycorns/rorganize.it/statuses/ac9bae0bd9147d5ddf1d1950b5dca30c8abf0201"}}}}