{"action":"created","comment":{"url":"https://api.github.com/repos/faisalrazap/contentbunch/pulls/comments/46766391","id":46766391,"diff_hunk":"@@ -1,17 +1,45 @@\n class User < ActiveRecord::Base\n+  include Rails.application.routes.url_helpers\n+\n   # Include default devise modules. Others available are:\n   # :confirmable, :lockable, :timeoutable and :omniauthable\n   devise :database_authenticatable, :registerable,\n          :recoverable, :rememberable, :trackable, :validatable\n \n+  belongs_to :creator, class_name: 'User'\n+\n   validates_presence_of :role\n \n   Role = Struct.new(:display_name, :value_name)","path":"app/models/user.rb","position":13,"original_position":13,"commit_id":"b84a5de0d87bc50c1b3b1ea13e9d9f7569f4c181","original_commit_id":"b84a5de0d87bc50c1b3b1ea13e9d9f7569f4c181","user":{"login":"faisalrazap","id":16022853,"avatar_url":"https://avatars.githubusercontent.com/u/16022853?v=3","gravatar_id":"","url":"https://api.github.com/users/faisalrazap","html_url":"https://github.com/faisalrazap","followers_url":"https://api.github.com/users/faisalrazap/followers","following_url":"https://api.github.com/users/faisalrazap/following{/other_user}","gists_url":"https://api.github.com/users/faisalrazap/gists{/gist_id}","starred_url":"https://api.github.com/users/faisalrazap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faisalrazap/subscriptions","organizations_url":"https://api.github.com/users/faisalrazap/orgs","repos_url":"https://api.github.com/users/faisalrazap/repos","events_url":"https://api.github.com/users/faisalrazap/events{/privacy}","received_events_url":"https://api.github.com/users/faisalrazap/received_events","type":"User","site_admin":false},"body":"I think we should change it as well like `Struct.new(:role, :sub_roles)`","created_at":"2015-12-06T04:10:05Z","updated_at":"2015-12-06T04:10:05Z","html_url":"https://github.com/faisalrazap/contentbunch/pull/7#discussion_r46766391","pull_request_url":"https://api.github.com/repos/faisalrazap/contentbunch/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/faisalrazap/contentbunch/pulls/comments/46766391"},"html":{"href":"https://github.com/faisalrazap/contentbunch/pull/7#discussion_r46766391"},"pull_request":{"href":"https://api.github.com/repos/faisalrazap/contentbunch/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/faisalrazap/contentbunch/pulls/7","id":52751838,"html_url":"https://github.com/faisalrazap/contentbunch/pull/7","diff_url":"https://github.com/faisalrazap/contentbunch/pull/7.diff","patch_url":"https://github.com/faisalrazap/contentbunch/pull/7.patch","issue_url":"https://api.github.com/repos/faisalrazap/contentbunch/issues/7","number":7,"state":"open","locked":false,"title":"User management","user":{"login":"Bilkhaan","id":13800703,"avatar_url":"https://avatars.githubusercontent.com/u/13800703?v=3","gravatar_id":"","url":"https://api.github.com/users/Bilkhaan","html_url":"https://github.com/Bilkhaan","followers_url":"https://api.github.com/users/Bilkhaan/followers","following_url":"https://api.github.com/users/Bilkhaan/following{/other_user}","gists_url":"https://api.github.com/users/Bilkhaan/gists{/gist_id}","starred_url":"https://api.github.com/users/Bilkhaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bilkhaan/subscriptions","organizations_url":"https://api.github.com/users/Bilkhaan/orgs","repos_url":"https://api.github.com/users/Bilkhaan/repos","events_url":"https://api.github.com/users/Bilkhaan/events{/privacy}","received_events_url":"https://api.github.com/users/Bilkhaan/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-05T10:03:35Z","updated_at":"2015-12-06T04:10:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c2ed4a1822c13cfc087662afe6453d3a139ec2a4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/faisalrazap/contentbunch/pulls/7/commits","review_comments_url":"https://api.github.com/repos/faisalrazap/contentbunch/pulls/7/comments","review_comment_url":"https://api.github.com/repos/faisalrazap/contentbunch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/faisalrazap/contentbunch/issues/7/comments","statuses_url":"https://api.github.com/repos/faisalrazap/contentbunch/statuses/b84a5de0d87bc50c1b3b1ea13e9d9f7569f4c181","head":{"label":"faisalrazap:user_management","ref":"user_management","sha":"b84a5de0d87bc50c1b3b1ea13e9d9f7569f4c181","user":{"login":"faisalrazap","id":16022853,"avatar_url":"https://avatars.githubusercontent.com/u/16022853?v=3","gravatar_id":"","url":"https://api.github.com/users/faisalrazap","html_url":"https://github.com/faisalrazap","followers_url":"https://api.github.com/users/faisalrazap/followers","following_url":"https://api.github.com/users/faisalrazap/following{/other_user}","gists_url":"https://api.github.com/users/faisalrazap/gists{/gist_id}","starred_url":"https://api.github.com/users/faisalrazap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faisalrazap/subscriptions","organizations_url":"https://api.github.com/users/faisalrazap/orgs","repos_url":"https://api.github.com/users/faisalrazap/repos","events_url":"https://api.github.com/users/faisalrazap/events{/privacy}","received_events_url":"https://api.github.com/users/faisalrazap/received_events","type":"User","site_admin":false},"repo":{"id":46941554,"name":"contentbunch","full_name":"faisalrazap/contentbunch","owner":{"login":"faisalrazap","id":16022853,"avatar_url":"https://avatars.githubusercontent.com/u/16022853?v=3","gravatar_id":"","url":"https://api.github.com/users/faisalrazap","html_url":"https://github.com/faisalrazap","followers_url":"https://api.github.com/users/faisalrazap/followers","following_url":"https://api.github.com/users/faisalrazap/following{/other_user}","gists_url":"https://api.github.com/users/faisalrazap/gists{/gist_id}","starred_url":"https://api.github.com/users/faisalrazap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faisalrazap/subscriptions","organizations_url":"https://api.github.com/users/faisalrazap/orgs","repos_url":"https://api.github.com/users/faisalrazap/repos","events_url":"https://api.github.com/users/faisalrazap/events{/privacy}","received_events_url":"https://api.github.com/users/faisalrazap/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/faisalrazap/contentbunch","description":"","fork":false,"url":"https://api.github.com/repos/faisalrazap/contentbunch","forks_url":"https://api.github.com/repos/faisalrazap/contentbunch/forks","keys_url":"https://api.github.com/repos/faisalrazap/contentbunch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/faisalrazap/contentbunch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/faisalrazap/contentbunch/teams","hooks_url":"https://api.github.com/repos/faisalrazap/contentbunch/hooks","issue_events_url":"https://api.github.com/repos/faisalrazap/contentbunch/issues/events{/number}","events_url":"https://api.github.com/repos/faisalrazap/contentbunch/events","assignees_url":"https://api.github.com/repos/faisalrazap/contentbunch/assignees{/user}","branches_url":"https://api.github.com/repos/faisalrazap/contentbunch/branches{/branch}","tags_url":"https://api.github.com/repos/faisalrazap/contentbunch/tags","blobs_url":"https://api.github.com/repos/faisalrazap/contentbunch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/faisalrazap/contentbunch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/faisalrazap/contentbunch/git/refs{/sha}","trees_url":"https://api.github.com/repos/faisalrazap/contentbunch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/faisalrazap/contentbunch/statuses/{sha}","languages_url":"https://api.github.com/repos/faisalrazap/contentbunch/languages","stargazers_url":"https://api.github.com/repos/faisalrazap/contentbunch/stargazers","contributors_url":"https://api.github.com/repos/faisalrazap/contentbunch/contributors","subscribers_url":"https://api.github.com/repos/faisalrazap/contentbunch/subscribers","subscription_url":"https://api.github.com/repos/faisalrazap/contentbunch/subscription","commits_url":"https://api.github.com/repos/faisalrazap/contentbunch/commits{/sha}","git_commits_url":"https://api.github.com/repos/faisalrazap/contentbunch/git/commits{/sha}","comments_url":"https://api.github.com/repos/faisalrazap/contentbunch/comments{/number}","issue_comment_url":"https://api.github.com/repos/faisalrazap/contentbunch/issues/comments{/number}","contents_url":"https://api.github.com/repos/faisalrazap/contentbunch/contents/{+path}","compare_url":"https://api.github.com/repos/faisalrazap/contentbunch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/faisalrazap/contentbunch/merges","archive_url":"https://api.github.com/repos/faisalrazap/contentbunch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/faisalrazap/contentbunch/downloads","issues_url":"https://api.github.com/repos/faisalrazap/contentbunch/issues{/number}","pulls_url":"https://api.github.com/repos/faisalrazap/contentbunch/pulls{/number}","milestones_url":"https://api.github.com/repos/faisalrazap/contentbunch/milestones{/number}","notifications_url":"https://api.github.com/repos/faisalrazap/contentbunch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/faisalrazap/contentbunch/labels{/name}","releases_url":"https://api.github.com/repos/faisalrazap/contentbunch/releases{/id}","created_at":"2015-11-26T18:23:00Z","updated_at":"2015-11-29T07:44:04Z","pushed_at":"2015-12-05T10:03:35Z","git_url":"git://github.com/faisalrazap/contentbunch.git","ssh_url":"git@github.com:faisalrazap/contentbunch.git","clone_url":"https://github.com/faisalrazap/contentbunch.git","svn_url":"https://github.com/faisalrazap/contentbunch","homepage":null,"size":81,"stargazers_count":1,"watchers_count":1,"language":"Ruby","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":"faisalrazap:master","ref":"master","sha":"be2e5bc2c4164effea1ed7c929b3baf871bff0e1","user":{"login":"faisalrazap","id":16022853,"avatar_url":"https://avatars.githubusercontent.com/u/16022853?v=3","gravatar_id":"","url":"https://api.github.com/users/faisalrazap","html_url":"https://github.com/faisalrazap","followers_url":"https://api.github.com/users/faisalrazap/followers","following_url":"https://api.github.com/users/faisalrazap/following{/other_user}","gists_url":"https://api.github.com/users/faisalrazap/gists{/gist_id}","starred_url":"https://api.github.com/users/faisalrazap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faisalrazap/subscriptions","organizations_url":"https://api.github.com/users/faisalrazap/orgs","repos_url":"https://api.github.com/users/faisalrazap/repos","events_url":"https://api.github.com/users/faisalrazap/events{/privacy}","received_events_url":"https://api.github.com/users/faisalrazap/received_events","type":"User","site_admin":false},"repo":{"id":46941554,"name":"contentbunch","full_name":"faisalrazap/contentbunch","owner":{"login":"faisalrazap","id":16022853,"avatar_url":"https://avatars.githubusercontent.com/u/16022853?v=3","gravatar_id":"","url":"https://api.github.com/users/faisalrazap","html_url":"https://github.com/faisalrazap","followers_url":"https://api.github.com/users/faisalrazap/followers","following_url":"https://api.github.com/users/faisalrazap/following{/other_user}","gists_url":"https://api.github.com/users/faisalrazap/gists{/gist_id}","starred_url":"https://api.github.com/users/faisalrazap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faisalrazap/subscriptions","organizations_url":"https://api.github.com/users/faisalrazap/orgs","repos_url":"https://api.github.com/users/faisalrazap/repos","events_url":"https://api.github.com/users/faisalrazap/events{/privacy}","received_events_url":"https://api.github.com/users/faisalrazap/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/faisalrazap/contentbunch","description":"","fork":false,"url":"https://api.github.com/repos/faisalrazap/contentbunch","forks_url":"https://api.github.com/repos/faisalrazap/contentbunch/forks","keys_url":"https://api.github.com/repos/faisalrazap/contentbunch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/faisalrazap/contentbunch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/faisalrazap/contentbunch/teams","hooks_url":"https://api.github.com/repos/faisalrazap/contentbunch/hooks","issue_events_url":"https://api.github.com/repos/faisalrazap/contentbunch/issues/events{/number}","events_url":"https://api.github.com/repos/faisalrazap/contentbunch/events","assignees_url":"https://api.github.com/repos/faisalrazap/contentbunch/assignees{/user}","branches_url":"https://api.github.com/repos/faisalrazap/contentbunch/branches{/branch}","tags_url":"https://api.github.com/repos/faisalrazap/contentbunch/tags","blobs_url":"https://api.github.com/repos/faisalrazap/contentbunch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/faisalrazap/contentbunch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/faisalrazap/contentbunch/git/refs{/sha}","trees_url":"https://api.github.com/repos/faisalrazap/contentbunch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/faisalrazap/contentbunch/statuses/{sha}","languages_url":"https://api.github.com/repos/faisalrazap/contentbunch/languages","stargazers_url":"https://api.github.com/repos/faisalrazap/contentbunch/stargazers","contributors_url":"https://api.github.com/repos/faisalrazap/contentbunch/contributors","subscribers_url":"https://api.github.com/repos/faisalrazap/contentbunch/subscribers","subscription_url":"https://api.github.com/repos/faisalrazap/contentbunch/subscription","commits_url":"https://api.github.com/repos/faisalrazap/contentbunch/commits{/sha}","git_commits_url":"https://api.github.com/repos/faisalrazap/contentbunch/git/commits{/sha}","comments_url":"https://api.github.com/repos/faisalrazap/contentbunch/comments{/number}","issue_comment_url":"https://api.github.com/repos/faisalrazap/contentbunch/issues/comments{/number}","contents_url":"https://api.github.com/repos/faisalrazap/contentbunch/contents/{+path}","compare_url":"https://api.github.com/repos/faisalrazap/contentbunch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/faisalrazap/contentbunch/merges","archive_url":"https://api.github.com/repos/faisalrazap/contentbunch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/faisalrazap/contentbunch/downloads","issues_url":"https://api.github.com/repos/faisalrazap/contentbunch/issues{/number}","pulls_url":"https://api.github.com/repos/faisalrazap/contentbunch/pulls{/number}","milestones_url":"https://api.github.com/repos/faisalrazap/contentbunch/milestones{/number}","notifications_url":"https://api.github.com/repos/faisalrazap/contentbunch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/faisalrazap/contentbunch/labels{/name}","releases_url":"https://api.github.com/repos/faisalrazap/contentbunch/releases{/id}","created_at":"2015-11-26T18:23:00Z","updated_at":"2015-11-29T07:44:04Z","pushed_at":"2015-12-05T10:03:35Z","git_url":"git://github.com/faisalrazap/contentbunch.git","ssh_url":"git@github.com:faisalrazap/contentbunch.git","clone_url":"https://github.com/faisalrazap/contentbunch.git","svn_url":"https://github.com/faisalrazap/contentbunch","homepage":null,"size":81,"stargazers_count":1,"watchers_count":1,"language":"Ruby","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/faisalrazap/contentbunch/pulls/7"},"html":{"href":"https://github.com/faisalrazap/contentbunch/pull/7"},"issue":{"href":"https://api.github.com/repos/faisalrazap/contentbunch/issues/7"},"comments":{"href":"https://api.github.com/repos/faisalrazap/contentbunch/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/faisalrazap/contentbunch/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/faisalrazap/contentbunch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/faisalrazap/contentbunch/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/faisalrazap/contentbunch/statuses/b84a5de0d87bc50c1b3b1ea13e9d9f7569f4c181"}}}}