{"action":"created","comment":{"url":"https://api.github.com/repos/hosseintoussi/devsdeck/pulls/comments/64516988","id":64516988,"diff_hunk":"@@ -0,0 +1,30 @@\n+class UsersController < ApplicationController\n+  before_action :set_user, only: [:show, :edit, :update]\n+\n+  def index\n+    @users = User.all\n+  end\n+\n+  def show\n+    @cards = current_user.cards.order(\"created_at\")\n+    @liked = current_user.find_voted_items.sort_by(&:created_at)","path":"app/controllers/users_controller.rb","position":10,"original_position":10,"commit_id":"55970e52e9edea2d6ef35b06ba00733853b337d3","original_commit_id":"55970e52e9edea2d6ef35b06ba00733853b337d3","user":{"login":"hosseintoussi","id":12149734,"avatar_url":"https://avatars.githubusercontent.com/u/12149734?v=3","gravatar_id":"","url":"https://api.github.com/users/hosseintoussi","html_url":"https://github.com/hosseintoussi","followers_url":"https://api.github.com/users/hosseintoussi/followers","following_url":"https://api.github.com/users/hosseintoussi/following{/other_user}","gists_url":"https://api.github.com/users/hosseintoussi/gists{/gist_id}","starred_url":"https://api.github.com/users/hosseintoussi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hosseintoussi/subscriptions","organizations_url":"https://api.github.com/users/hosseintoussi/orgs","repos_url":"https://api.github.com/users/hosseintoussi/repos","events_url":"https://api.github.com/users/hosseintoussi/events{/privacy}","received_events_url":"https://api.github.com/users/hosseintoussi/received_events","type":"User","site_admin":false},"body":"as you are moving these to models, perhaps you can put a limit on them too :) 🙇 ","created_at":"2016-05-25T05:26:59Z","updated_at":"2016-05-25T05:26:59Z","html_url":"https://github.com/hosseintoussi/devsdeck/pull/1#discussion_r64516988","pull_request_url":"https://api.github.com/repos/hosseintoussi/devsdeck/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/hosseintoussi/devsdeck/pulls/comments/64516988"},"html":{"href":"https://github.com/hosseintoussi/devsdeck/pull/1#discussion_r64516988"},"pull_request":{"href":"https://api.github.com/repos/hosseintoussi/devsdeck/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/hosseintoussi/devsdeck/pulls/1","id":70490035,"html_url":"https://github.com/hosseintoussi/devsdeck/pull/1","diff_url":"https://github.com/hosseintoussi/devsdeck/pull/1.diff","patch_url":"https://github.com/hosseintoussi/devsdeck/pull/1.patch","issue_url":"https://api.github.com/repos/hosseintoussi/devsdeck/issues/1","number":1,"state":"open","locked":false,"title":"Feature user profiles","user":{"login":"hosseintoussi","id":12149734,"avatar_url":"https://avatars.githubusercontent.com/u/12149734?v=3","gravatar_id":"","url":"https://api.github.com/users/hosseintoussi","html_url":"https://github.com/hosseintoussi","followers_url":"https://api.github.com/users/hosseintoussi/followers","following_url":"https://api.github.com/users/hosseintoussi/following{/other_user}","gists_url":"https://api.github.com/users/hosseintoussi/gists{/gist_id}","starred_url":"https://api.github.com/users/hosseintoussi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hosseintoussi/subscriptions","organizations_url":"https://api.github.com/users/hosseintoussi/orgs","repos_url":"https://api.github.com/users/hosseintoussi/repos","events_url":"https://api.github.com/users/hosseintoussi/events{/privacy}","received_events_url":"https://api.github.com/users/hosseintoussi/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-18T08:51:21Z","updated_at":"2016-05-25T05:26:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4566413ede87a8969f83ab148686571468a625e9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hosseintoussi/devsdeck/pulls/1/commits","review_comments_url":"https://api.github.com/repos/hosseintoussi/devsdeck/pulls/1/comments","review_comment_url":"https://api.github.com/repos/hosseintoussi/devsdeck/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hosseintoussi/devsdeck/issues/1/comments","statuses_url":"https://api.github.com/repos/hosseintoussi/devsdeck/statuses/55970e52e9edea2d6ef35b06ba00733853b337d3","head":{"label":"hosseintoussi:feature_user_profiles","ref":"feature_user_profiles","sha":"55970e52e9edea2d6ef35b06ba00733853b337d3","user":{"login":"hosseintoussi","id":12149734,"avatar_url":"https://avatars.githubusercontent.com/u/12149734?v=3","gravatar_id":"","url":"https://api.github.com/users/hosseintoussi","html_url":"https://github.com/hosseintoussi","followers_url":"https://api.github.com/users/hosseintoussi/followers","following_url":"https://api.github.com/users/hosseintoussi/following{/other_user}","gists_url":"https://api.github.com/users/hosseintoussi/gists{/gist_id}","starred_url":"https://api.github.com/users/hosseintoussi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hosseintoussi/subscriptions","organizations_url":"https://api.github.com/users/hosseintoussi/orgs","repos_url":"https://api.github.com/users/hosseintoussi/repos","events_url":"https://api.github.com/users/hosseintoussi/events{/privacy}","received_events_url":"https://api.github.com/users/hosseintoussi/received_events","type":"User","site_admin":false},"repo":{"id":58953021,"name":"devsdeck","full_name":"hosseintoussi/devsdeck","owner":{"login":"hosseintoussi","id":12149734,"avatar_url":"https://avatars.githubusercontent.com/u/12149734?v=3","gravatar_id":"","url":"https://api.github.com/users/hosseintoussi","html_url":"https://github.com/hosseintoussi","followers_url":"https://api.github.com/users/hosseintoussi/followers","following_url":"https://api.github.com/users/hosseintoussi/following{/other_user}","gists_url":"https://api.github.com/users/hosseintoussi/gists{/gist_id}","starred_url":"https://api.github.com/users/hosseintoussi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hosseintoussi/subscriptions","organizations_url":"https://api.github.com/users/hosseintoussi/orgs","repos_url":"https://api.github.com/users/hosseintoussi/repos","events_url":"https://api.github.com/users/hosseintoussi/events{/privacy}","received_events_url":"https://api.github.com/users/hosseintoussi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hosseintoussi/devsdeck","description":"","fork":false,"url":"https://api.github.com/repos/hosseintoussi/devsdeck","forks_url":"https://api.github.com/repos/hosseintoussi/devsdeck/forks","keys_url":"https://api.github.com/repos/hosseintoussi/devsdeck/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hosseintoussi/devsdeck/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hosseintoussi/devsdeck/teams","hooks_url":"https://api.github.com/repos/hosseintoussi/devsdeck/hooks","issue_events_url":"https://api.github.com/repos/hosseintoussi/devsdeck/issues/events{/number}","events_url":"https://api.github.com/repos/hosseintoussi/devsdeck/events","assignees_url":"https://api.github.com/repos/hosseintoussi/devsdeck/assignees{/user}","branches_url":"https://api.github.com/repos/hosseintoussi/devsdeck/branches{/branch}","tags_url":"https://api.github.com/repos/hosseintoussi/devsdeck/tags","blobs_url":"https://api.github.com/repos/hosseintoussi/devsdeck/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hosseintoussi/devsdeck/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hosseintoussi/devsdeck/git/refs{/sha}","trees_url":"https://api.github.com/repos/hosseintoussi/devsdeck/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hosseintoussi/devsdeck/statuses/{sha}","languages_url":"https://api.github.com/repos/hosseintoussi/devsdeck/languages","stargazers_url":"https://api.github.com/repos/hosseintoussi/devsdeck/stargazers","contributors_url":"https://api.github.com/repos/hosseintoussi/devsdeck/contributors","subscribers_url":"https://api.github.com/repos/hosseintoussi/devsdeck/subscribers","subscription_url":"https://api.github.com/repos/hosseintoussi/devsdeck/subscription","commits_url":"https://api.github.com/repos/hosseintoussi/devsdeck/commits{/sha}","git_commits_url":"https://api.github.com/repos/hosseintoussi/devsdeck/git/commits{/sha}","comments_url":"https://api.github.com/repos/hosseintoussi/devsdeck/comments{/number}","issue_comment_url":"https://api.github.com/repos/hosseintoussi/devsdeck/issues/comments{/number}","contents_url":"https://api.github.com/repos/hosseintoussi/devsdeck/contents/{+path}","compare_url":"https://api.github.com/repos/hosseintoussi/devsdeck/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hosseintoussi/devsdeck/merges","archive_url":"https://api.github.com/repos/hosseintoussi/devsdeck/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hosseintoussi/devsdeck/downloads","issues_url":"https://api.github.com/repos/hosseintoussi/devsdeck/issues{/number}","pulls_url":"https://api.github.com/repos/hosseintoussi/devsdeck/pulls{/number}","milestones_url":"https://api.github.com/repos/hosseintoussi/devsdeck/milestones{/number}","notifications_url":"https://api.github.com/repos/hosseintoussi/devsdeck/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hosseintoussi/devsdeck/labels{/name}","releases_url":"https://api.github.com/repos/hosseintoussi/devsdeck/releases{/id}","deployments_url":"https://api.github.com/repos/hosseintoussi/devsdeck/deployments","created_at":"2016-05-16T17:32:26Z","updated_at":"2016-05-20T14:02:33Z","pushed_at":"2016-05-25T03:35:01Z","git_url":"git://github.com/hosseintoussi/devsdeck.git","ssh_url":"git@github.com:hosseintoussi/devsdeck.git","clone_url":"https://github.com/hosseintoussi/devsdeck.git","svn_url":"https://github.com/hosseintoussi/devsdeck","homepage":"http://devsdeck.com","size":1712,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"hosseintoussi:master","ref":"master","sha":"10c44f06876d1fe6a29c248031aa997f26e824e3","user":{"login":"hosseintoussi","id":12149734,"avatar_url":"https://avatars.githubusercontent.com/u/12149734?v=3","gravatar_id":"","url":"https://api.github.com/users/hosseintoussi","html_url":"https://github.com/hosseintoussi","followers_url":"https://api.github.com/users/hosseintoussi/followers","following_url":"https://api.github.com/users/hosseintoussi/following{/other_user}","gists_url":"https://api.github.com/users/hosseintoussi/gists{/gist_id}","starred_url":"https://api.github.com/users/hosseintoussi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hosseintoussi/subscriptions","organizations_url":"https://api.github.com/users/hosseintoussi/orgs","repos_url":"https://api.github.com/users/hosseintoussi/repos","events_url":"https://api.github.com/users/hosseintoussi/events{/privacy}","received_events_url":"https://api.github.com/users/hosseintoussi/received_events","type":"User","site_admin":false},"repo":{"id":58953021,"name":"devsdeck","full_name":"hosseintoussi/devsdeck","owner":{"login":"hosseintoussi","id":12149734,"avatar_url":"https://avatars.githubusercontent.com/u/12149734?v=3","gravatar_id":"","url":"https://api.github.com/users/hosseintoussi","html_url":"https://github.com/hosseintoussi","followers_url":"https://api.github.com/users/hosseintoussi/followers","following_url":"https://api.github.com/users/hosseintoussi/following{/other_user}","gists_url":"https://api.github.com/users/hosseintoussi/gists{/gist_id}","starred_url":"https://api.github.com/users/hosseintoussi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hosseintoussi/subscriptions","organizations_url":"https://api.github.com/users/hosseintoussi/orgs","repos_url":"https://api.github.com/users/hosseintoussi/repos","events_url":"https://api.github.com/users/hosseintoussi/events{/privacy}","received_events_url":"https://api.github.com/users/hosseintoussi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hosseintoussi/devsdeck","description":"","fork":false,"url":"https://api.github.com/repos/hosseintoussi/devsdeck","forks_url":"https://api.github.com/repos/hosseintoussi/devsdeck/forks","keys_url":"https://api.github.com/repos/hosseintoussi/devsdeck/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hosseintoussi/devsdeck/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hosseintoussi/devsdeck/teams","hooks_url":"https://api.github.com/repos/hosseintoussi/devsdeck/hooks","issue_events_url":"https://api.github.com/repos/hosseintoussi/devsdeck/issues/events{/number}","events_url":"https://api.github.com/repos/hosseintoussi/devsdeck/events","assignees_url":"https://api.github.com/repos/hosseintoussi/devsdeck/assignees{/user}","branches_url":"https://api.github.com/repos/hosseintoussi/devsdeck/branches{/branch}","tags_url":"https://api.github.com/repos/hosseintoussi/devsdeck/tags","blobs_url":"https://api.github.com/repos/hosseintoussi/devsdeck/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hosseintoussi/devsdeck/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hosseintoussi/devsdeck/git/refs{/sha}","trees_url":"https://api.github.com/repos/hosseintoussi/devsdeck/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hosseintoussi/devsdeck/statuses/{sha}","languages_url":"https://api.github.com/repos/hosseintoussi/devsdeck/languages","stargazers_url":"https://api.github.com/repos/hosseintoussi/devsdeck/stargazers","contributors_url":"https://api.github.com/repos/hosseintoussi/devsdeck/contributors","subscribers_url":"https://api.github.com/repos/hosseintoussi/devsdeck/subscribers","subscription_url":"https://api.github.com/repos/hosseintoussi/devsdeck/subscription","commits_url":"https://api.github.com/repos/hosseintoussi/devsdeck/commits{/sha}","git_commits_url":"https://api.github.com/repos/hosseintoussi/devsdeck/git/commits{/sha}","comments_url":"https://api.github.com/repos/hosseintoussi/devsdeck/comments{/number}","issue_comment_url":"https://api.github.com/repos/hosseintoussi/devsdeck/issues/comments{/number}","contents_url":"https://api.github.com/repos/hosseintoussi/devsdeck/contents/{+path}","compare_url":"https://api.github.com/repos/hosseintoussi/devsdeck/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hosseintoussi/devsdeck/merges","archive_url":"https://api.github.com/repos/hosseintoussi/devsdeck/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hosseintoussi/devsdeck/downloads","issues_url":"https://api.github.com/repos/hosseintoussi/devsdeck/issues{/number}","pulls_url":"https://api.github.com/repos/hosseintoussi/devsdeck/pulls{/number}","milestones_url":"https://api.github.com/repos/hosseintoussi/devsdeck/milestones{/number}","notifications_url":"https://api.github.com/repos/hosseintoussi/devsdeck/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hosseintoussi/devsdeck/labels{/name}","releases_url":"https://api.github.com/repos/hosseintoussi/devsdeck/releases{/id}","deployments_url":"https://api.github.com/repos/hosseintoussi/devsdeck/deployments","created_at":"2016-05-16T17:32:26Z","updated_at":"2016-05-20T14:02:33Z","pushed_at":"2016-05-25T03:35:01Z","git_url":"git://github.com/hosseintoussi/devsdeck.git","ssh_url":"git@github.com:hosseintoussi/devsdeck.git","clone_url":"https://github.com/hosseintoussi/devsdeck.git","svn_url":"https://github.com/hosseintoussi/devsdeck","homepage":"http://devsdeck.com","size":1712,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hosseintoussi/devsdeck/pulls/1"},"html":{"href":"https://github.com/hosseintoussi/devsdeck/pull/1"},"issue":{"href":"https://api.github.com/repos/hosseintoussi/devsdeck/issues/1"},"comments":{"href":"https://api.github.com/repos/hosseintoussi/devsdeck/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/hosseintoussi/devsdeck/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/hosseintoussi/devsdeck/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hosseintoussi/devsdeck/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/hosseintoussi/devsdeck/statuses/55970e52e9edea2d6ef35b06ba00733853b337d3"}}}}
{"actor":{"display_login":"hosseintoussi"}}