{"action":"created","comment":{"url":"https://api.github.com/repos/rolandobrown/okazi/pulls/comments/86677481","pull_request_review_id":7325525,"id":86677481,"diff_hunk":"@@ -0,0 +1,152 @@\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+    user_requests: Field::HasMany,\n+    requests: Field::HasMany,\n+    user_industries: Field::HasMany,\n+    industries: Field::HasMany,\n+    roles: Field::HasMany,\n+    id: Field::Number,\n+    email: Field::String,\n+    encrypted_password: Field::String,\n+    reset_password_token: Field::String,\n+    reset_password_sent_at: Field::DateTime,\n+    remember_created_at: Field::DateTime,\n+    sign_in_count: Field::Number,\n+    current_sign_in_at: Field::DateTime,\n+    last_sign_in_at: Field::DateTime,\n+    current_sign_in_ip: Field::String.with_options(searchable: false),\n+    last_sign_in_ip: Field::String.with_options(searchable: false),\n+    created_at: Field::DateTime,\n+    updated_at: Field::DateTime,\n+    name: Field::String,\n+    mobile: Field::String,\n+    role: Field::Text,\n+    business_name: Field::String,\n+    business_link: Field::String,\n+    years_of_experience: Field::Number,\n+    years_at_business: Field::Number,\n+    available: Field::Boolean,\n+    availability: Field::String,\n+    location: Field::String,\n+    has_transportation: Field::Boolean,\n+    office_type: Field::String,\n+    status: Field::Boolean,\n+    completed_jobs: Field::Number,\n+    rate: Field::String,\n+    rating: Field::Number,\n+    can_do: Field::Text,\n+    published: 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+    :name,\n+    :email,\n+    :requests,\n+    :industries,\n+  ].freeze\n+\n+  # SHOW_PAGE_ATTRIBUTES\n+  # an array of attributes that will be displayed on the model's show page.\n+  SHOW_PAGE_ATTRIBUTES = [\n+    :id,\n+    :email,\n+    :roles,\n+    :created_at,\n+    :updated_at,\n+    :name,\n+    :mobile,\n+    :role,\n+    :business_name,\n+    :business_link,\n+    :years_of_experience,\n+    :years_at_business,\n+    :available,\n+    :availability,\n+    :location,\n+    :has_transportation,\n+    :office_type,\n+    :status,\n+    :completed_jobs,\n+    :rate,\n+    :rating,\n+    :can_do,\n+    :published,\n+    :requests,\n+    :industries,\n+    :user_requests,\n+    :user_industries,\n+    :encrypted_password,\n+    :reset_password_token,\n+    :reset_password_sent_at,\n+    :remember_created_at,\n+    :sign_in_count,\n+    :current_sign_in_at,\n+    :last_sign_in_at,\n+    :current_sign_in_ip,\n+    :last_sign_in_ip,\n+  ].freeze\n+\n+  # FORM_ATTRIBUTES\n+  # an array of attributes that will be displayed\n+  # on the model's form (`new` and `edit`) pages.\n+  FORM_ATTRIBUTES = [\n+    :user_requests,\n+    :requests,\n+    :user_industries,\n+    :industries,\n+    :roles,\n+    :email,\n+    :encrypted_password,\n+    :reset_password_token,\n+    :reset_password_sent_at,\n+    :remember_created_at,\n+    :sign_in_count,\n+    :current_sign_in_at,\n+    :last_sign_in_at,\n+    :current_sign_in_ip,\n+    :last_sign_in_ip,\n+    :name,\n+    :mobile,\n+    :role,\n+    :business_name,\n+    :business_link,\n+    :years_of_experience,\n+    :years_at_business,\n+    :available,\n+    :availability,\n+    :location,\n+    :has_transportation,\n+    :office_type,\n+    :status,\n+    :completed_jobs,\n+    :rate,\n+    :rating,\n+    :can_do,\n+    :published,\n+  ].freeze\n+\n+  # Overwrite this method to customize how users are displayed\n+  # across all pages of the admin dashboard.\n+  #\n+  def display_resource(user)\n+    if user.name\n+      \"#{user.name} <#{user.email}>\"\n+    else\n+      \"#{user.email}\"","path":"app/dashboards/user_dashboard.rb","position":148,"original_position":148,"commit_id":"f371aa92332860b6608f320d7b1e326fbcea340d","original_commit_id":"f371aa92332860b6608f320d7b1e326fbcea340d","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Prefer to_s over string interpolation.","created_at":"2016-11-06T02:05:58Z","updated_at":"2016-11-06T02:05:59Z","html_url":"https://github.com/rolandobrown/okazi/pull/21#discussion_r86677481","pull_request_url":"https://api.github.com/repos/rolandobrown/okazi/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/rolandobrown/okazi/pulls/comments/86677481"},"html":{"href":"https://github.com/rolandobrown/okazi/pull/21#discussion_r86677481"},"pull_request":{"href":"https://api.github.com/repos/rolandobrown/okazi/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/rolandobrown/okazi/pulls/21","id":92474367,"html_url":"https://github.com/rolandobrown/okazi/pull/21","diff_url":"https://github.com/rolandobrown/okazi/pull/21.diff","patch_url":"https://github.com/rolandobrown/okazi/pull/21.patch","issue_url":"https://api.github.com/repos/rolandobrown/okazi/issues/21","number":21,"state":"closed","locked":false,"title":"Update master with Feature / Administrate","user":{"login":"rolandobrown","id":4044968,"avatar_url":"https://avatars.githubusercontent.com/u/4044968?v=3","gravatar_id":"","url":"https://api.github.com/users/rolandobrown","html_url":"https://github.com/rolandobrown","followers_url":"https://api.github.com/users/rolandobrown/followers","following_url":"https://api.github.com/users/rolandobrown/following{/other_user}","gists_url":"https://api.github.com/users/rolandobrown/gists{/gist_id}","starred_url":"https://api.github.com/users/rolandobrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolandobrown/subscriptions","organizations_url":"https://api.github.com/users/rolandobrown/orgs","repos_url":"https://api.github.com/users/rolandobrown/repos","events_url":"https://api.github.com/users/rolandobrown/events{/privacy}","received_events_url":"https://api.github.com/users/rolandobrown/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-06T02:05:47Z","updated_at":"2016-11-06T02:05:59Z","closed_at":"2016-11-06T02:05:51Z","merged_at":"2016-11-06T02:05:51Z","merge_commit_sha":"d67360f8e8d3189a8d70a5ee659e825092a04d1c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rolandobrown/okazi/pulls/21/commits","review_comments_url":"https://api.github.com/repos/rolandobrown/okazi/pulls/21/comments","review_comment_url":"https://api.github.com/repos/rolandobrown/okazi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rolandobrown/okazi/issues/21/comments","statuses_url":"https://api.github.com/repos/rolandobrown/okazi/statuses/f371aa92332860b6608f320d7b1e326fbcea340d","head":{"label":"rolandobrown:staging","ref":"staging","sha":"f371aa92332860b6608f320d7b1e326fbcea340d","user":{"login":"rolandobrown","id":4044968,"avatar_url":"https://avatars.githubusercontent.com/u/4044968?v=3","gravatar_id":"","url":"https://api.github.com/users/rolandobrown","html_url":"https://github.com/rolandobrown","followers_url":"https://api.github.com/users/rolandobrown/followers","following_url":"https://api.github.com/users/rolandobrown/following{/other_user}","gists_url":"https://api.github.com/users/rolandobrown/gists{/gist_id}","starred_url":"https://api.github.com/users/rolandobrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolandobrown/subscriptions","organizations_url":"https://api.github.com/users/rolandobrown/orgs","repos_url":"https://api.github.com/users/rolandobrown/repos","events_url":"https://api.github.com/users/rolandobrown/events{/privacy}","received_events_url":"https://api.github.com/users/rolandobrown/received_events","type":"User","site_admin":false},"repo":{"id":70103911,"name":"okazi","full_name":"rolandobrown/okazi","owner":{"login":"rolandobrown","id":4044968,"avatar_url":"https://avatars.githubusercontent.com/u/4044968?v=3","gravatar_id":"","url":"https://api.github.com/users/rolandobrown","html_url":"https://github.com/rolandobrown","followers_url":"https://api.github.com/users/rolandobrown/followers","following_url":"https://api.github.com/users/rolandobrown/following{/other_user}","gists_url":"https://api.github.com/users/rolandobrown/gists{/gist_id}","starred_url":"https://api.github.com/users/rolandobrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolandobrown/subscriptions","organizations_url":"https://api.github.com/users/rolandobrown/orgs","repos_url":"https://api.github.com/users/rolandobrown/repos","events_url":"https://api.github.com/users/rolandobrown/events{/privacy}","received_events_url":"https://api.github.com/users/rolandobrown/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rolandobrown/okazi","description":"Connect SMBs in emerging markets with on-demand workforce from other SMBs whose staff have excess capacity.","fork":false,"url":"https://api.github.com/repos/rolandobrown/okazi","forks_url":"https://api.github.com/repos/rolandobrown/okazi/forks","keys_url":"https://api.github.com/repos/rolandobrown/okazi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rolandobrown/okazi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rolandobrown/okazi/teams","hooks_url":"https://api.github.com/repos/rolandobrown/okazi/hooks","issue_events_url":"https://api.github.com/repos/rolandobrown/okazi/issues/events{/number}","events_url":"https://api.github.com/repos/rolandobrown/okazi/events","assignees_url":"https://api.github.com/repos/rolandobrown/okazi/assignees{/user}","branches_url":"https://api.github.com/repos/rolandobrown/okazi/branches{/branch}","tags_url":"https://api.github.com/repos/rolandobrown/okazi/tags","blobs_url":"https://api.github.com/repos/rolandobrown/okazi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rolandobrown/okazi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rolandobrown/okazi/git/refs{/sha}","trees_url":"https://api.github.com/repos/rolandobrown/okazi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rolandobrown/okazi/statuses/{sha}","languages_url":"https://api.github.com/repos/rolandobrown/okazi/languages","stargazers_url":"https://api.github.com/repos/rolandobrown/okazi/stargazers","contributors_url":"https://api.github.com/repos/rolandobrown/okazi/contributors","subscribers_url":"https://api.github.com/repos/rolandobrown/okazi/subscribers","subscription_url":"https://api.github.com/repos/rolandobrown/okazi/subscription","commits_url":"https://api.github.com/repos/rolandobrown/okazi/commits{/sha}","git_commits_url":"https://api.github.com/repos/rolandobrown/okazi/git/commits{/sha}","comments_url":"https://api.github.com/repos/rolandobrown/okazi/comments{/number}","issue_comment_url":"https://api.github.com/repos/rolandobrown/okazi/issues/comments{/number}","contents_url":"https://api.github.com/repos/rolandobrown/okazi/contents/{+path}","compare_url":"https://api.github.com/repos/rolandobrown/okazi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rolandobrown/okazi/merges","archive_url":"https://api.github.com/repos/rolandobrown/okazi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rolandobrown/okazi/downloads","issues_url":"https://api.github.com/repos/rolandobrown/okazi/issues{/number}","pulls_url":"https://api.github.com/repos/rolandobrown/okazi/pulls{/number}","milestones_url":"https://api.github.com/repos/rolandobrown/okazi/milestones{/number}","notifications_url":"https://api.github.com/repos/rolandobrown/okazi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rolandobrown/okazi/labels{/name}","releases_url":"https://api.github.com/repos/rolandobrown/okazi/releases{/id}","deployments_url":"https://api.github.com/repos/rolandobrown/okazi/deployments","created_at":"2016-10-05T22:19:04Z","updated_at":"2016-11-04T17:34:33Z","pushed_at":"2016-11-06T02:05:51Z","git_url":"git://github.com/rolandobrown/okazi.git","ssh_url":"git@github.com:rolandobrown/okazi.git","clone_url":"https://github.com/rolandobrown/okazi.git","svn_url":"https://github.com/rolandobrown/okazi","homepage":"","size":130,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"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":"rolandobrown:master","ref":"master","sha":"6a6b547e5c2114fb93c4978be5cf6f117bc9dde1","user":{"login":"rolandobrown","id":4044968,"avatar_url":"https://avatars.githubusercontent.com/u/4044968?v=3","gravatar_id":"","url":"https://api.github.com/users/rolandobrown","html_url":"https://github.com/rolandobrown","followers_url":"https://api.github.com/users/rolandobrown/followers","following_url":"https://api.github.com/users/rolandobrown/following{/other_user}","gists_url":"https://api.github.com/users/rolandobrown/gists{/gist_id}","starred_url":"https://api.github.com/users/rolandobrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolandobrown/subscriptions","organizations_url":"https://api.github.com/users/rolandobrown/orgs","repos_url":"https://api.github.com/users/rolandobrown/repos","events_url":"https://api.github.com/users/rolandobrown/events{/privacy}","received_events_url":"https://api.github.com/users/rolandobrown/received_events","type":"User","site_admin":false},"repo":{"id":70103911,"name":"okazi","full_name":"rolandobrown/okazi","owner":{"login":"rolandobrown","id":4044968,"avatar_url":"https://avatars.githubusercontent.com/u/4044968?v=3","gravatar_id":"","url":"https://api.github.com/users/rolandobrown","html_url":"https://github.com/rolandobrown","followers_url":"https://api.github.com/users/rolandobrown/followers","following_url":"https://api.github.com/users/rolandobrown/following{/other_user}","gists_url":"https://api.github.com/users/rolandobrown/gists{/gist_id}","starred_url":"https://api.github.com/users/rolandobrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolandobrown/subscriptions","organizations_url":"https://api.github.com/users/rolandobrown/orgs","repos_url":"https://api.github.com/users/rolandobrown/repos","events_url":"https://api.github.com/users/rolandobrown/events{/privacy}","received_events_url":"https://api.github.com/users/rolandobrown/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rolandobrown/okazi","description":"Connect SMBs in emerging markets with on-demand workforce from other SMBs whose staff have excess capacity.","fork":false,"url":"https://api.github.com/repos/rolandobrown/okazi","forks_url":"https://api.github.com/repos/rolandobrown/okazi/forks","keys_url":"https://api.github.com/repos/rolandobrown/okazi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rolandobrown/okazi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rolandobrown/okazi/teams","hooks_url":"https://api.github.com/repos/rolandobrown/okazi/hooks","issue_events_url":"https://api.github.com/repos/rolandobrown/okazi/issues/events{/number}","events_url":"https://api.github.com/repos/rolandobrown/okazi/events","assignees_url":"https://api.github.com/repos/rolandobrown/okazi/assignees{/user}","branches_url":"https://api.github.com/repos/rolandobrown/okazi/branches{/branch}","tags_url":"https://api.github.com/repos/rolandobrown/okazi/tags","blobs_url":"https://api.github.com/repos/rolandobrown/okazi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rolandobrown/okazi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rolandobrown/okazi/git/refs{/sha}","trees_url":"https://api.github.com/repos/rolandobrown/okazi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rolandobrown/okazi/statuses/{sha}","languages_url":"https://api.github.com/repos/rolandobrown/okazi/languages","stargazers_url":"https://api.github.com/repos/rolandobrown/okazi/stargazers","contributors_url":"https://api.github.com/repos/rolandobrown/okazi/contributors","subscribers_url":"https://api.github.com/repos/rolandobrown/okazi/subscribers","subscription_url":"https://api.github.com/repos/rolandobrown/okazi/subscription","commits_url":"https://api.github.com/repos/rolandobrown/okazi/commits{/sha}","git_commits_url":"https://api.github.com/repos/rolandobrown/okazi/git/commits{/sha}","comments_url":"https://api.github.com/repos/rolandobrown/okazi/comments{/number}","issue_comment_url":"https://api.github.com/repos/rolandobrown/okazi/issues/comments{/number}","contents_url":"https://api.github.com/repos/rolandobrown/okazi/contents/{+path}","compare_url":"https://api.github.com/repos/rolandobrown/okazi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rolandobrown/okazi/merges","archive_url":"https://api.github.com/repos/rolandobrown/okazi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rolandobrown/okazi/downloads","issues_url":"https://api.github.com/repos/rolandobrown/okazi/issues{/number}","pulls_url":"https://api.github.com/repos/rolandobrown/okazi/pulls{/number}","milestones_url":"https://api.github.com/repos/rolandobrown/okazi/milestones{/number}","notifications_url":"https://api.github.com/repos/rolandobrown/okazi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rolandobrown/okazi/labels{/name}","releases_url":"https://api.github.com/repos/rolandobrown/okazi/releases{/id}","deployments_url":"https://api.github.com/repos/rolandobrown/okazi/deployments","created_at":"2016-10-05T22:19:04Z","updated_at":"2016-11-04T17:34:33Z","pushed_at":"2016-11-06T02:05:51Z","git_url":"git://github.com/rolandobrown/okazi.git","ssh_url":"git@github.com:rolandobrown/okazi.git","clone_url":"https://github.com/rolandobrown/okazi.git","svn_url":"https://github.com/rolandobrown/okazi","homepage":"","size":130,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/rolandobrown/okazi/pulls/21"},"html":{"href":"https://github.com/rolandobrown/okazi/pull/21"},"issue":{"href":"https://api.github.com/repos/rolandobrown/okazi/issues/21"},"comments":{"href":"https://api.github.com/repos/rolandobrown/okazi/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/rolandobrown/okazi/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/rolandobrown/okazi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rolandobrown/okazi/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/rolandobrown/okazi/statuses/f371aa92332860b6608f320d7b1e326fbcea340d"}}}}
{"actor":{"display_login":"houndci-bot"}}