{"action":"created","comment":{"url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/pulls/comments/36048705","id":36048705,"diff_hunk":"@@ -0,0 +1,6 @@\n+class Album < ActiveRecord::Base\n+  validates :name, presence: true\n+  validates :rank, numericality: { only_integer: true }\n+\n+  scope :top, -> { order(rank: :desc).limit(3) }","path":"app/models/album.rb","position":5,"original_position":5,"commit_id":"28965d73ce0cc6f4033f3ba303a5480a56b9761f","original_commit_id":"28965d73ce0cc6f4033f3ba303a5480a56b9761f","user":{"login":"elsamoluf","id":10170087,"avatar_url":"https://avatars.githubusercontent.com/u/10170087?v=3","gravatar_id":"","url":"https://api.github.com/users/elsamoluf","html_url":"https://github.com/elsamoluf","followers_url":"https://api.github.com/users/elsamoluf/followers","following_url":"https://api.github.com/users/elsamoluf/following{/other_user}","gists_url":"https://api.github.com/users/elsamoluf/gists{/gist_id}","starred_url":"https://api.github.com/users/elsamoluf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elsamoluf/subscriptions","organizations_url":"https://api.github.com/users/elsamoluf/orgs","repos_url":"https://api.github.com/users/elsamoluf/repos","events_url":"https://api.github.com/users/elsamoluf/events{/privacy}","received_events_url":"https://api.github.com/users/elsamoluf/received_events","type":"User","site_admin":false},"body":"Cool! I'll try it.","created_at":"2015-08-02T22:04:30Z","updated_at":"2015-08-02T22:04:30Z","html_url":"https://github.com/Ada-Developers-Academy/C3Projects--MediaRanker/pull/16#discussion_r36048705","pull_request_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/pulls/comments/36048705"},"html":{"href":"https://github.com/Ada-Developers-Academy/C3Projects--MediaRanker/pull/16#discussion_r36048705"},"pull_request":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/pulls/16","id":39737205,"html_url":"https://github.com/Ada-Developers-Academy/C3Projects--MediaRanker/pull/16","diff_url":"https://github.com/Ada-Developers-Academy/C3Projects--MediaRanker/pull/16.diff","patch_url":"https://github.com/Ada-Developers-Academy/C3Projects--MediaRanker/pull/16.patch","issue_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/issues/16","number":16,"state":"open","locked":false,"title":"Media Ranker project. waves 1-3","user":{"login":"elsamoluf","id":10170087,"avatar_url":"https://avatars.githubusercontent.com/u/10170087?v=3","gravatar_id":"","url":"https://api.github.com/users/elsamoluf","html_url":"https://github.com/elsamoluf","followers_url":"https://api.github.com/users/elsamoluf/followers","following_url":"https://api.github.com/users/elsamoluf/following{/other_user}","gists_url":"https://api.github.com/users/elsamoluf/gists{/gist_id}","starred_url":"https://api.github.com/users/elsamoluf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elsamoluf/subscriptions","organizations_url":"https://api.github.com/users/elsamoluf/orgs","repos_url":"https://api.github.com/users/elsamoluf/repos","events_url":"https://api.github.com/users/elsamoluf/events{/privacy}","received_events_url":"https://api.github.com/users/elsamoluf/received_events","type":"User","site_admin":false},"body":"I'm super happy that I discovered polymorphic paths! Also glad I was able to move the index, show, and form content into shared views. I was also quite happy with my routing and upvote methods that use `increment!`. I didn't bother refactoring my rspec tests this time, but after a few classmates got their tests to be shared across models and controllers I'm interested in trying it next time around. At the outset I considered utilizing just one model and one controller, but decided based on how the data was being used to keep everything split up.","created_at":"2015-07-11T01:19:24Z","updated_at":"2015-08-02T22:04:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d75983ce5d4888ba61c57219ce2ef14799e20965","assignee":{"login":"kariabancroft","id":7269204,"avatar_url":"https://avatars.githubusercontent.com/u/7269204?v=3","gravatar_id":"","url":"https://api.github.com/users/kariabancroft","html_url":"https://github.com/kariabancroft","followers_url":"https://api.github.com/users/kariabancroft/followers","following_url":"https://api.github.com/users/kariabancroft/following{/other_user}","gists_url":"https://api.github.com/users/kariabancroft/gists{/gist_id}","starred_url":"https://api.github.com/users/kariabancroft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kariabancroft/subscriptions","organizations_url":"https://api.github.com/users/kariabancroft/orgs","repos_url":"https://api.github.com/users/kariabancroft/repos","events_url":"https://api.github.com/users/kariabancroft/events{/privacy}","received_events_url":"https://api.github.com/users/kariabancroft/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/pulls/16/commits","review_comments_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/pulls/16/comments","review_comment_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/issues/16/comments","statuses_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/statuses/28965d73ce0cc6f4033f3ba303a5480a56b9761f","head":{"label":"elsamoluf:edm/master","ref":"edm/master","sha":"28965d73ce0cc6f4033f3ba303a5480a56b9761f","user":{"login":"elsamoluf","id":10170087,"avatar_url":"https://avatars.githubusercontent.com/u/10170087?v=3","gravatar_id":"","url":"https://api.github.com/users/elsamoluf","html_url":"https://github.com/elsamoluf","followers_url":"https://api.github.com/users/elsamoluf/followers","following_url":"https://api.github.com/users/elsamoluf/following{/other_user}","gists_url":"https://api.github.com/users/elsamoluf/gists{/gist_id}","starred_url":"https://api.github.com/users/elsamoluf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elsamoluf/subscriptions","organizations_url":"https://api.github.com/users/elsamoluf/orgs","repos_url":"https://api.github.com/users/elsamoluf/repos","events_url":"https://api.github.com/users/elsamoluf/events{/privacy}","received_events_url":"https://api.github.com/users/elsamoluf/received_events","type":"User","site_admin":false},"repo":{"id":38647897,"name":"C3Projects--MediaRanker","full_name":"elsamoluf/C3Projects--MediaRanker","owner":{"login":"elsamoluf","id":10170087,"avatar_url":"https://avatars.githubusercontent.com/u/10170087?v=3","gravatar_id":"","url":"https://api.github.com/users/elsamoluf","html_url":"https://github.com/elsamoluf","followers_url":"https://api.github.com/users/elsamoluf/followers","following_url":"https://api.github.com/users/elsamoluf/following{/other_user}","gists_url":"https://api.github.com/users/elsamoluf/gists{/gist_id}","starred_url":"https://api.github.com/users/elsamoluf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elsamoluf/subscriptions","organizations_url":"https://api.github.com/users/elsamoluf/orgs","repos_url":"https://api.github.com/users/elsamoluf/repos","events_url":"https://api.github.com/users/elsamoluf/events{/privacy}","received_events_url":"https://api.github.com/users/elsamoluf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elsamoluf/C3Projects--MediaRanker","description":"","fork":true,"url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker","forks_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/forks","keys_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/teams","hooks_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/hooks","issue_events_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/issues/events{/number}","events_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/events","assignees_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/assignees{/user}","branches_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/branches{/branch}","tags_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/tags","blobs_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/git/refs{/sha}","trees_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/statuses/{sha}","languages_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/languages","stargazers_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/stargazers","contributors_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/contributors","subscribers_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/subscribers","subscription_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/subscription","commits_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/commits{/sha}","git_commits_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/git/commits{/sha}","comments_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/comments{/number}","issue_comment_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/issues/comments{/number}","contents_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/contents/{+path}","compare_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/merges","archive_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/downloads","issues_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/issues{/number}","pulls_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/pulls{/number}","milestones_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/milestones{/number}","notifications_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/labels{/name}","releases_url":"https://api.github.com/repos/elsamoluf/C3Projects--MediaRanker/releases{/id}","created_at":"2015-07-06T21:40:59Z","updated_at":"2015-06-30T20:51:55Z","pushed_at":"2015-07-10T21:50:27Z","git_url":"git://github.com/elsamoluf/C3Projects--MediaRanker.git","ssh_url":"git@github.com:elsamoluf/C3Projects--MediaRanker.git","clone_url":"https://github.com/elsamoluf/C3Projects--MediaRanker.git","svn_url":"https://github.com/elsamoluf/C3Projects--MediaRanker","homepage":null,"size":191,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"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":"Ada-Developers-Academy:edm/master","ref":"edm/master","sha":"ab36a6b95eec76e2c916b348baf598b93949bc56","user":{"login":"Ada-Developers-Academy","id":4689715,"avatar_url":"https://avatars.githubusercontent.com/u/4689715?v=3","gravatar_id":"","url":"https://api.github.com/users/Ada-Developers-Academy","html_url":"https://github.com/Ada-Developers-Academy","followers_url":"https://api.github.com/users/Ada-Developers-Academy/followers","following_url":"https://api.github.com/users/Ada-Developers-Academy/following{/other_user}","gists_url":"https://api.github.com/users/Ada-Developers-Academy/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-Developers-Academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-Developers-Academy/subscriptions","organizations_url":"https://api.github.com/users/Ada-Developers-Academy/orgs","repos_url":"https://api.github.com/users/Ada-Developers-Academy/repos","events_url":"https://api.github.com/users/Ada-Developers-Academy/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-Developers-Academy/received_events","type":"Organization","site_admin":false},"repo":{"id":38332554,"name":"C3Projects--MediaRanker","full_name":"Ada-Developers-Academy/C3Projects--MediaRanker","owner":{"login":"Ada-Developers-Academy","id":4689715,"avatar_url":"https://avatars.githubusercontent.com/u/4689715?v=3","gravatar_id":"","url":"https://api.github.com/users/Ada-Developers-Academy","html_url":"https://github.com/Ada-Developers-Academy","followers_url":"https://api.github.com/users/Ada-Developers-Academy/followers","following_url":"https://api.github.com/users/Ada-Developers-Academy/following{/other_user}","gists_url":"https://api.github.com/users/Ada-Developers-Academy/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-Developers-Academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-Developers-Academy/subscriptions","organizations_url":"https://api.github.com/users/Ada-Developers-Academy/orgs","repos_url":"https://api.github.com/users/Ada-Developers-Academy/repos","events_url":"https://api.github.com/users/Ada-Developers-Academy/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-Developers-Academy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ada-Developers-Academy/C3Projects--MediaRanker","description":"","fork":false,"url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker","forks_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/forks","keys_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/teams","hooks_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/hooks","issue_events_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/issues/events{/number}","events_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/events","assignees_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/assignees{/user}","branches_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/branches{/branch}","tags_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/tags","blobs_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/statuses/{sha}","languages_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/languages","stargazers_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/stargazers","contributors_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/contributors","subscribers_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/subscribers","subscription_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/subscription","commits_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/contents/{+path}","compare_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/merges","archive_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/downloads","issues_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/issues{/number}","pulls_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/pulls{/number}","milestones_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/milestones{/number}","notifications_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/labels{/name}","releases_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/releases{/id}","created_at":"2015-06-30T20:51:55Z","updated_at":"2015-06-30T20:51:55Z","pushed_at":"2015-08-02T21:41:58Z","git_url":"git://github.com/Ada-Developers-Academy/C3Projects--MediaRanker.git","ssh_url":"git@github.com:Ada-Developers-Academy/C3Projects--MediaRanker.git","clone_url":"https://github.com/Ada-Developers-Academy/C3Projects--MediaRanker.git","svn_url":"https://github.com/Ada-Developers-Academy/C3Projects--MediaRanker","homepage":null,"size":15949,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":13,"forks":25,"open_issues":13,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/pulls/16"},"html":{"href":"https://github.com/Ada-Developers-Academy/C3Projects--MediaRanker/pull/16"},"issue":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/issues/16"},"comments":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--MediaRanker/statuses/28965d73ce0cc6f4033f3ba303a5480a56b9761f"}}}}