{"action":"created","comment":{"url":"https://api.github.com/repos/plexmate/plexmate/pulls/comments/68503780","id":68503780,"diff_hunk":"@@ -0,0 +1,102 @@\n+require \"administrate/base_dashboard\"\n+\n+class UserDashboard < Administrate::BaseDashboard\n+  # ATTRIBUTE_TYPES\n+  # a hash that describes the type of each of the model's fields.\n+  #\n+  # Each different type represents an Administrate::Field object,\n+  # which determines how the attribute is displayed\n+  # on pages throughout the dashboard.\n+  ATTRIBUTE_TYPES = {\n+    property_relationships: Field::HasMany,\n+    properties: Field::HasMany,\n+    id: Field::Number,\n+    created_at: Field::DateTime,\n+    updated_at: Field::DateTime,\n+    email: Field::String,\n+    encrypted_password: Field::String,\n+    confirmation_token: Field::String,\n+    remember_token: Field::String,\n+    auth_provider: Field::String,\n+    auth_uid: Field::String,\n+    name: Field::String,\n+    latitude: Field::String,\n+    longitude: Field::String,\n+    city: Field::String,\n+    state: Field::String,\n+    category: Field::String,\n+    access_token: Field::String,\n+    refresh_token: Field::String,\n+    token_expires_at: Field::Number,\n+    admin: Field::Boolean,\n+  }.freeze\n+\n+  # COLLECTION_ATTRIBUTES\n+  # an array of attributes that will be displayed on the model's index page.\n+  #\n+  # By default, it's limited to four items to reduce clutter on index pages.\n+  # Feel free to add, remove, or rearrange items.\n+  COLLECTION_ATTRIBUTES = [\n+    :id,\n+    :name,\n+    :properties,\n+    :created_at,\n+  ].freeze","path":"app/dashboards/user_dashboard.rb","position":44,"original_position":44,"commit_id":"50c6a37a67d1fd921c4b19f9acb5378abdcfbda8","original_commit_id":"50c6a37a67d1fd921c4b19f9acb5378abdcfbda8","user":{"login":"tadp","id":4078758,"avatar_url":"https://avatars.githubusercontent.com/u/4078758?v=3","gravatar_id":"","url":"https://api.github.com/users/tadp","html_url":"https://github.com/tadp","followers_url":"https://api.github.com/users/tadp/followers","following_url":"https://api.github.com/users/tadp/following{/other_user}","gists_url":"https://api.github.com/users/tadp/gists{/gist_id}","starred_url":"https://api.github.com/users/tadp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tadp/subscriptions","organizations_url":"https://api.github.com/users/tadp/orgs","repos_url":"https://api.github.com/users/tadp/repos","events_url":"https://api.github.com/users/tadp/events{/privacy}","received_events_url":"https://api.github.com/users/tadp/received_events","type":"User","site_admin":false},"body":"💯 On the freeze. Conserving memory early on.","created_at":"2016-06-26T14:19:09Z","updated_at":"2016-06-26T14:19:09Z","html_url":"https://github.com/plexmate/plexmate/pull/12#discussion_r68503780","pull_request_url":"https://api.github.com/repos/plexmate/plexmate/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/plexmate/plexmate/pulls/comments/68503780"},"html":{"href":"https://github.com/plexmate/plexmate/pull/12#discussion_r68503780"},"pull_request":{"href":"https://api.github.com/repos/plexmate/plexmate/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/plexmate/plexmate/pulls/12","id":75218449,"html_url":"https://github.com/plexmate/plexmate/pull/12","diff_url":"https://github.com/plexmate/plexmate/pull/12.diff","patch_url":"https://github.com/plexmate/plexmate/pull/12.patch","issue_url":"https://api.github.com/repos/plexmate/plexmate/issues/12","number":12,"state":"open","locked":false,"title":"Add administration area","user":{"login":"theharq","id":1143421,"avatar_url":"https://avatars.githubusercontent.com/u/1143421?v=3","gravatar_id":"","url":"https://api.github.com/users/theharq","html_url":"https://github.com/theharq","followers_url":"https://api.github.com/users/theharq/followers","following_url":"https://api.github.com/users/theharq/following{/other_user}","gists_url":"https://api.github.com/users/theharq/gists{/gist_id}","starred_url":"https://api.github.com/users/theharq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theharq/subscriptions","organizations_url":"https://api.github.com/users/theharq/orgs","repos_url":"https://api.github.com/users/theharq/repos","events_url":"https://api.github.com/users/theharq/events{/privacy}","received_events_url":"https://api.github.com/users/theharq/received_events","type":"User","site_admin":false},"body":"#### What this PR does:\r\n\r\n- Administration area\r\n- Only users with admin flag can access to this area.\r\n\r\n![admin](https://cloud.githubusercontent.com/assets/1143421/16359982/2b3a610c-3b0f-11e6-863d-08c68d6ef927.gif)\r\n\r\n\r\n#### Notes:\r\n\r\nDepends on this PR https://github.com/plexmate/plexmate/pull/11 to be merged first","created_at":"2016-06-26T00:59:32Z","updated_at":"2016-06-26T14:19:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ab9287ac2d8168c2a0c0865db48b3920ae98ec81","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/plexmate/plexmate/pulls/12/commits","review_comments_url":"https://api.github.com/repos/plexmate/plexmate/pulls/12/comments","review_comment_url":"https://api.github.com/repos/plexmate/plexmate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/plexmate/plexmate/issues/12/comments","statuses_url":"https://api.github.com/repos/plexmate/plexmate/statuses/50c6a37a67d1fd921c4b19f9acb5378abdcfbda8","head":{"label":"plexmate:add-administration-area","ref":"add-administration-area","sha":"50c6a37a67d1fd921c4b19f9acb5378abdcfbda8","user":{"login":"plexmate","id":15783611,"avatar_url":"https://avatars.githubusercontent.com/u/15783611?v=3","gravatar_id":"","url":"https://api.github.com/users/plexmate","html_url":"https://github.com/plexmate","followers_url":"https://api.github.com/users/plexmate/followers","following_url":"https://api.github.com/users/plexmate/following{/other_user}","gists_url":"https://api.github.com/users/plexmate/gists{/gist_id}","starred_url":"https://api.github.com/users/plexmate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plexmate/subscriptions","organizations_url":"https://api.github.com/users/plexmate/orgs","repos_url":"https://api.github.com/users/plexmate/repos","events_url":"https://api.github.com/users/plexmate/events{/privacy}","received_events_url":"https://api.github.com/users/plexmate/received_events","type":"Organization","site_admin":false},"repo":{"id":59745272,"name":"plexmate","full_name":"plexmate/plexmate","owner":{"login":"plexmate","id":15783611,"avatar_url":"https://avatars.githubusercontent.com/u/15783611?v=3","gravatar_id":"","url":"https://api.github.com/users/plexmate","html_url":"https://github.com/plexmate","followers_url":"https://api.github.com/users/plexmate/followers","following_url":"https://api.github.com/users/plexmate/following{/other_user}","gists_url":"https://api.github.com/users/plexmate/gists{/gist_id}","starred_url":"https://api.github.com/users/plexmate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plexmate/subscriptions","organizations_url":"https://api.github.com/users/plexmate/orgs","repos_url":"https://api.github.com/users/plexmate/repos","events_url":"https://api.github.com/users/plexmate/events{/privacy}","received_events_url":"https://api.github.com/users/plexmate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/plexmate/plexmate","description":"","fork":false,"url":"https://api.github.com/repos/plexmate/plexmate","forks_url":"https://api.github.com/repos/plexmate/plexmate/forks","keys_url":"https://api.github.com/repos/plexmate/plexmate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/plexmate/plexmate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/plexmate/plexmate/teams","hooks_url":"https://api.github.com/repos/plexmate/plexmate/hooks","issue_events_url":"https://api.github.com/repos/plexmate/plexmate/issues/events{/number}","events_url":"https://api.github.com/repos/plexmate/plexmate/events","assignees_url":"https://api.github.com/repos/plexmate/plexmate/assignees{/user}","branches_url":"https://api.github.com/repos/plexmate/plexmate/branches{/branch}","tags_url":"https://api.github.com/repos/plexmate/plexmate/tags","blobs_url":"https://api.github.com/repos/plexmate/plexmate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/plexmate/plexmate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/plexmate/plexmate/git/refs{/sha}","trees_url":"https://api.github.com/repos/plexmate/plexmate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/plexmate/plexmate/statuses/{sha}","languages_url":"https://api.github.com/repos/plexmate/plexmate/languages","stargazers_url":"https://api.github.com/repos/plexmate/plexmate/stargazers","contributors_url":"https://api.github.com/repos/plexmate/plexmate/contributors","subscribers_url":"https://api.github.com/repos/plexmate/plexmate/subscribers","subscription_url":"https://api.github.com/repos/plexmate/plexmate/subscription","commits_url":"https://api.github.com/repos/plexmate/plexmate/commits{/sha}","git_commits_url":"https://api.github.com/repos/plexmate/plexmate/git/commits{/sha}","comments_url":"https://api.github.com/repos/plexmate/plexmate/comments{/number}","issue_comment_url":"https://api.github.com/repos/plexmate/plexmate/issues/comments{/number}","contents_url":"https://api.github.com/repos/plexmate/plexmate/contents/{+path}","compare_url":"https://api.github.com/repos/plexmate/plexmate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/plexmate/plexmate/merges","archive_url":"https://api.github.com/repos/plexmate/plexmate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/plexmate/plexmate/downloads","issues_url":"https://api.github.com/repos/plexmate/plexmate/issues{/number}","pulls_url":"https://api.github.com/repos/plexmate/plexmate/pulls{/number}","milestones_url":"https://api.github.com/repos/plexmate/plexmate/milestones{/number}","notifications_url":"https://api.github.com/repos/plexmate/plexmate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/plexmate/plexmate/labels{/name}","releases_url":"https://api.github.com/repos/plexmate/plexmate/releases{/id}","deployments_url":"https://api.github.com/repos/plexmate/plexmate/deployments","created_at":"2016-05-26T11:32:35Z","updated_at":"2016-06-06T20:36:24Z","pushed_at":"2016-06-26T13:53:10Z","git_url":"git://github.com/plexmate/plexmate.git","ssh_url":"git@github.com:plexmate/plexmate.git","clone_url":"https://github.com/plexmate/plexmate.git","svn_url":"https://github.com/plexmate/plexmate","homepage":null,"size":14126,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"plexmate:master","ref":"master","sha":"8383e712832e74b6516b793656960634b4cba1e4","user":{"login":"plexmate","id":15783611,"avatar_url":"https://avatars.githubusercontent.com/u/15783611?v=3","gravatar_id":"","url":"https://api.github.com/users/plexmate","html_url":"https://github.com/plexmate","followers_url":"https://api.github.com/users/plexmate/followers","following_url":"https://api.github.com/users/plexmate/following{/other_user}","gists_url":"https://api.github.com/users/plexmate/gists{/gist_id}","starred_url":"https://api.github.com/users/plexmate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plexmate/subscriptions","organizations_url":"https://api.github.com/users/plexmate/orgs","repos_url":"https://api.github.com/users/plexmate/repos","events_url":"https://api.github.com/users/plexmate/events{/privacy}","received_events_url":"https://api.github.com/users/plexmate/received_events","type":"Organization","site_admin":false},"repo":{"id":59745272,"name":"plexmate","full_name":"plexmate/plexmate","owner":{"login":"plexmate","id":15783611,"avatar_url":"https://avatars.githubusercontent.com/u/15783611?v=3","gravatar_id":"","url":"https://api.github.com/users/plexmate","html_url":"https://github.com/plexmate","followers_url":"https://api.github.com/users/plexmate/followers","following_url":"https://api.github.com/users/plexmate/following{/other_user}","gists_url":"https://api.github.com/users/plexmate/gists{/gist_id}","starred_url":"https://api.github.com/users/plexmate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plexmate/subscriptions","organizations_url":"https://api.github.com/users/plexmate/orgs","repos_url":"https://api.github.com/users/plexmate/repos","events_url":"https://api.github.com/users/plexmate/events{/privacy}","received_events_url":"https://api.github.com/users/plexmate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/plexmate/plexmate","description":"","fork":false,"url":"https://api.github.com/repos/plexmate/plexmate","forks_url":"https://api.github.com/repos/plexmate/plexmate/forks","keys_url":"https://api.github.com/repos/plexmate/plexmate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/plexmate/plexmate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/plexmate/plexmate/teams","hooks_url":"https://api.github.com/repos/plexmate/plexmate/hooks","issue_events_url":"https://api.github.com/repos/plexmate/plexmate/issues/events{/number}","events_url":"https://api.github.com/repos/plexmate/plexmate/events","assignees_url":"https://api.github.com/repos/plexmate/plexmate/assignees{/user}","branches_url":"https://api.github.com/repos/plexmate/plexmate/branches{/branch}","tags_url":"https://api.github.com/repos/plexmate/plexmate/tags","blobs_url":"https://api.github.com/repos/plexmate/plexmate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/plexmate/plexmate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/plexmate/plexmate/git/refs{/sha}","trees_url":"https://api.github.com/repos/plexmate/plexmate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/plexmate/plexmate/statuses/{sha}","languages_url":"https://api.github.com/repos/plexmate/plexmate/languages","stargazers_url":"https://api.github.com/repos/plexmate/plexmate/stargazers","contributors_url":"https://api.github.com/repos/plexmate/plexmate/contributors","subscribers_url":"https://api.github.com/repos/plexmate/plexmate/subscribers","subscription_url":"https://api.github.com/repos/plexmate/plexmate/subscription","commits_url":"https://api.github.com/repos/plexmate/plexmate/commits{/sha}","git_commits_url":"https://api.github.com/repos/plexmate/plexmate/git/commits{/sha}","comments_url":"https://api.github.com/repos/plexmate/plexmate/comments{/number}","issue_comment_url":"https://api.github.com/repos/plexmate/plexmate/issues/comments{/number}","contents_url":"https://api.github.com/repos/plexmate/plexmate/contents/{+path}","compare_url":"https://api.github.com/repos/plexmate/plexmate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/plexmate/plexmate/merges","archive_url":"https://api.github.com/repos/plexmate/plexmate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/plexmate/plexmate/downloads","issues_url":"https://api.github.com/repos/plexmate/plexmate/issues{/number}","pulls_url":"https://api.github.com/repos/plexmate/plexmate/pulls{/number}","milestones_url":"https://api.github.com/repos/plexmate/plexmate/milestones{/number}","notifications_url":"https://api.github.com/repos/plexmate/plexmate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/plexmate/plexmate/labels{/name}","releases_url":"https://api.github.com/repos/plexmate/plexmate/releases{/id}","deployments_url":"https://api.github.com/repos/plexmate/plexmate/deployments","created_at":"2016-05-26T11:32:35Z","updated_at":"2016-06-06T20:36:24Z","pushed_at":"2016-06-26T13:53:10Z","git_url":"git://github.com/plexmate/plexmate.git","ssh_url":"git@github.com:plexmate/plexmate.git","clone_url":"https://github.com/plexmate/plexmate.git","svn_url":"https://github.com/plexmate/plexmate","homepage":null,"size":14126,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/plexmate/plexmate/pulls/12"},"html":{"href":"https://github.com/plexmate/plexmate/pull/12"},"issue":{"href":"https://api.github.com/repos/plexmate/plexmate/issues/12"},"comments":{"href":"https://api.github.com/repos/plexmate/plexmate/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/plexmate/plexmate/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/plexmate/plexmate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/plexmate/plexmate/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/plexmate/plexmate/statuses/50c6a37a67d1fd921c4b19f9acb5378abdcfbda8"}}}}
{"actor":{"display_login":"tadp"}}