{"action":"created","comment":{"url":"https://api.github.com/repos/thoughtbot/administrate/pulls/comments/125190161","pull_request_review_id":47556709,"id":125190161,"diff_hunk":"@@ -15,12 +16,24 @@ def resource_path\n         @resource_path ||= resource_name.gsub(\"/\", \"_\")\n       end\n \n+      def attribute_label(attribute)\n+        dashboard.resource_class.human_attribute_name(attribute)\n+      end\n+\n+      def context_chain\n+        parent_context_chain + [context]\n+      end\n+\n+      def context\n+        self\n+      end\n+\n       protected\n \n       def attribute_field(dashboard, resource, attribute_name, page)\n         value = get_attribute_value(resource, attribute_name)\n         field = dashboard.attribute_type_for(attribute_name)\n-        field.new(attribute_name, value, page)\n+        field.new(attribute_name, value, page, parent_context_chain: context_chain)","path":"lib/administrate/page/base.rb","position":34,"original_position":34,"commit_id":"91ea5854d67e615b39efcc8badec644715382d90","original_commit_id":"91ea5854d67e615b39efcc8badec644715382d90","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars3.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":"Line is too long. [83/80]","created_at":"2017-07-02T19:09:29Z","updated_at":"2017-07-02T19:09:30Z","html_url":"https://github.com/thoughtbot/administrate/pull/843#discussion_r125190161","pull_request_url":"https://api.github.com/repos/thoughtbot/administrate/pulls/843","_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/administrate/pulls/comments/125190161"},"html":{"href":"https://github.com/thoughtbot/administrate/pull/843#discussion_r125190161"},"pull_request":{"href":"https://api.github.com/repos/thoughtbot/administrate/pulls/843"}}},"pull_request":{"url":"https://api.github.com/repos/thoughtbot/administrate/pulls/843","id":118272237,"html_url":"https://github.com/thoughtbot/administrate/pull/843","diff_url":"https://github.com/thoughtbot/administrate/pull/843.diff","patch_url":"https://github.com/thoughtbot/administrate/pull/843.patch","issue_url":"https://api.github.com/repos/thoughtbot/administrate/issues/843","number":843,"state":"open","locked":false,"title":"Support for decorating resources","user":{"login":"pustomytnyk","id":9644824,"avatar_url":"https://avatars0.githubusercontent.com/u/9644824?v=3","gravatar_id":"","url":"https://api.github.com/users/pustomytnyk","html_url":"https://github.com/pustomytnyk","followers_url":"https://api.github.com/users/pustomytnyk/followers","following_url":"https://api.github.com/users/pustomytnyk/following{/other_user}","gists_url":"https://api.github.com/users/pustomytnyk/gists{/gist_id}","starred_url":"https://api.github.com/users/pustomytnyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pustomytnyk/subscriptions","organizations_url":"https://api.github.com/users/pustomytnyk/orgs","repos_url":"https://api.github.com/users/pustomytnyk/repos","events_url":"https://api.github.com/users/pustomytnyk/events{/privacy}","received_events_url":"https://api.github.com/users/pustomytnyk/received_events","type":"User","site_admin":false},"body":"Allows use of decorator pattern (e.g. [Draper](https://github.com/drapergem/draper)). One can define `#decorate_resource` on a dashboard.","created_at":"2017-04-29T11:48:27Z","updated_at":"2017-07-02T19:09:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e72fc603423938cbac38cc458a359a599bbc6d5a","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/thoughtbot/administrate/pulls/843/commits","review_comments_url":"https://api.github.com/repos/thoughtbot/administrate/pulls/843/comments","review_comment_url":"https://api.github.com/repos/thoughtbot/administrate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thoughtbot/administrate/issues/843/comments","statuses_url":"https://api.github.com/repos/thoughtbot/administrate/statuses/91ea5854d67e615b39efcc8badec644715382d90","head":{"label":"pustomytnyk:decorators","ref":"decorators","sha":"91ea5854d67e615b39efcc8badec644715382d90","user":{"login":"pustomytnyk","id":9644824,"avatar_url":"https://avatars0.githubusercontent.com/u/9644824?v=3","gravatar_id":"","url":"https://api.github.com/users/pustomytnyk","html_url":"https://github.com/pustomytnyk","followers_url":"https://api.github.com/users/pustomytnyk/followers","following_url":"https://api.github.com/users/pustomytnyk/following{/other_user}","gists_url":"https://api.github.com/users/pustomytnyk/gists{/gist_id}","starred_url":"https://api.github.com/users/pustomytnyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pustomytnyk/subscriptions","organizations_url":"https://api.github.com/users/pustomytnyk/orgs","repos_url":"https://api.github.com/users/pustomytnyk/repos","events_url":"https://api.github.com/users/pustomytnyk/events{/privacy}","received_events_url":"https://api.github.com/users/pustomytnyk/received_events","type":"User","site_admin":false},"repo":{"id":83717716,"name":"administrate","full_name":"pustomytnyk/administrate","owner":{"login":"pustomytnyk","id":9644824,"avatar_url":"https://avatars0.githubusercontent.com/u/9644824?v=3","gravatar_id":"","url":"https://api.github.com/users/pustomytnyk","html_url":"https://github.com/pustomytnyk","followers_url":"https://api.github.com/users/pustomytnyk/followers","following_url":"https://api.github.com/users/pustomytnyk/following{/other_user}","gists_url":"https://api.github.com/users/pustomytnyk/gists{/gist_id}","starred_url":"https://api.github.com/users/pustomytnyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pustomytnyk/subscriptions","organizations_url":"https://api.github.com/users/pustomytnyk/orgs","repos_url":"https://api.github.com/users/pustomytnyk/repos","events_url":"https://api.github.com/users/pustomytnyk/events{/privacy}","received_events_url":"https://api.github.com/users/pustomytnyk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pustomytnyk/administrate","description":"A Rails engine that helps you put together a super-flexible admin dashboard.","fork":true,"url":"https://api.github.com/repos/pustomytnyk/administrate","forks_url":"https://api.github.com/repos/pustomytnyk/administrate/forks","keys_url":"https://api.github.com/repos/pustomytnyk/administrate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pustomytnyk/administrate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pustomytnyk/administrate/teams","hooks_url":"https://api.github.com/repos/pustomytnyk/administrate/hooks","issue_events_url":"https://api.github.com/repos/pustomytnyk/administrate/issues/events{/number}","events_url":"https://api.github.com/repos/pustomytnyk/administrate/events","assignees_url":"https://api.github.com/repos/pustomytnyk/administrate/assignees{/user}","branches_url":"https://api.github.com/repos/pustomytnyk/administrate/branches{/branch}","tags_url":"https://api.github.com/repos/pustomytnyk/administrate/tags","blobs_url":"https://api.github.com/repos/pustomytnyk/administrate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pustomytnyk/administrate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pustomytnyk/administrate/git/refs{/sha}","trees_url":"https://api.github.com/repos/pustomytnyk/administrate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pustomytnyk/administrate/statuses/{sha}","languages_url":"https://api.github.com/repos/pustomytnyk/administrate/languages","stargazers_url":"https://api.github.com/repos/pustomytnyk/administrate/stargazers","contributors_url":"https://api.github.com/repos/pustomytnyk/administrate/contributors","subscribers_url":"https://api.github.com/repos/pustomytnyk/administrate/subscribers","subscription_url":"https://api.github.com/repos/pustomytnyk/administrate/subscription","commits_url":"https://api.github.com/repos/pustomytnyk/administrate/commits{/sha}","git_commits_url":"https://api.github.com/repos/pustomytnyk/administrate/git/commits{/sha}","comments_url":"https://api.github.com/repos/pustomytnyk/administrate/comments{/number}","issue_comment_url":"https://api.github.com/repos/pustomytnyk/administrate/issues/comments{/number}","contents_url":"https://api.github.com/repos/pustomytnyk/administrate/contents/{+path}","compare_url":"https://api.github.com/repos/pustomytnyk/administrate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pustomytnyk/administrate/merges","archive_url":"https://api.github.com/repos/pustomytnyk/administrate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pustomytnyk/administrate/downloads","issues_url":"https://api.github.com/repos/pustomytnyk/administrate/issues{/number}","pulls_url":"https://api.github.com/repos/pustomytnyk/administrate/pulls{/number}","milestones_url":"https://api.github.com/repos/pustomytnyk/administrate/milestones{/number}","notifications_url":"https://api.github.com/repos/pustomytnyk/administrate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pustomytnyk/administrate/labels{/name}","releases_url":"https://api.github.com/repos/pustomytnyk/administrate/releases{/id}","deployments_url":"https://api.github.com/repos/pustomytnyk/administrate/deployments","created_at":"2017-03-02T19:43:34Z","updated_at":"2017-03-02T19:43:37Z","pushed_at":"2017-07-02T19:09:13Z","git_url":"git://github.com/pustomytnyk/administrate.git","ssh_url":"git@github.com:pustomytnyk/administrate.git","clone_url":"https://github.com/pustomytnyk/administrate.git","svn_url":"https://github.com/pustomytnyk/administrate","homepage":"http://administrate-prototype.herokuapp.com/admin","size":1065,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"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":"thoughtbot:master","ref":"master","sha":"6c9d30cf58be2bb9d403ac47ba53f25228dcd6e4","user":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars0.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"repo":{"id":33739333,"name":"administrate","full_name":"thoughtbot/administrate","owner":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars0.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thoughtbot/administrate","description":"A Rails engine that helps you put together a super-flexible admin dashboard.","fork":false,"url":"https://api.github.com/repos/thoughtbot/administrate","forks_url":"https://api.github.com/repos/thoughtbot/administrate/forks","keys_url":"https://api.github.com/repos/thoughtbot/administrate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thoughtbot/administrate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thoughtbot/administrate/teams","hooks_url":"https://api.github.com/repos/thoughtbot/administrate/hooks","issue_events_url":"https://api.github.com/repos/thoughtbot/administrate/issues/events{/number}","events_url":"https://api.github.com/repos/thoughtbot/administrate/events","assignees_url":"https://api.github.com/repos/thoughtbot/administrate/assignees{/user}","branches_url":"https://api.github.com/repos/thoughtbot/administrate/branches{/branch}","tags_url":"https://api.github.com/repos/thoughtbot/administrate/tags","blobs_url":"https://api.github.com/repos/thoughtbot/administrate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thoughtbot/administrate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thoughtbot/administrate/git/refs{/sha}","trees_url":"https://api.github.com/repos/thoughtbot/administrate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thoughtbot/administrate/statuses/{sha}","languages_url":"https://api.github.com/repos/thoughtbot/administrate/languages","stargazers_url":"https://api.github.com/repos/thoughtbot/administrate/stargazers","contributors_url":"https://api.github.com/repos/thoughtbot/administrate/contributors","subscribers_url":"https://api.github.com/repos/thoughtbot/administrate/subscribers","subscription_url":"https://api.github.com/repos/thoughtbot/administrate/subscription","commits_url":"https://api.github.com/repos/thoughtbot/administrate/commits{/sha}","git_commits_url":"https://api.github.com/repos/thoughtbot/administrate/git/commits{/sha}","comments_url":"https://api.github.com/repos/thoughtbot/administrate/comments{/number}","issue_comment_url":"https://api.github.com/repos/thoughtbot/administrate/issues/comments{/number}","contents_url":"https://api.github.com/repos/thoughtbot/administrate/contents/{+path}","compare_url":"https://api.github.com/repos/thoughtbot/administrate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thoughtbot/administrate/merges","archive_url":"https://api.github.com/repos/thoughtbot/administrate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thoughtbot/administrate/downloads","issues_url":"https://api.github.com/repos/thoughtbot/administrate/issues{/number}","pulls_url":"https://api.github.com/repos/thoughtbot/administrate/pulls{/number}","milestones_url":"https://api.github.com/repos/thoughtbot/administrate/milestones{/number}","notifications_url":"https://api.github.com/repos/thoughtbot/administrate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thoughtbot/administrate/labels{/name}","releases_url":"https://api.github.com/repos/thoughtbot/administrate/releases{/id}","deployments_url":"https://api.github.com/repos/thoughtbot/administrate/deployments","created_at":"2015-04-10T16:43:02Z","updated_at":"2017-07-02T17:11:05Z","pushed_at":"2017-07-02T19:09:15Z","git_url":"git://github.com/thoughtbot/administrate.git","ssh_url":"git@github.com:thoughtbot/administrate.git","clone_url":"https://github.com/thoughtbot/administrate.git","svn_url":"https://github.com/thoughtbot/administrate","homepage":"http://administrate-prototype.herokuapp.com/admin","size":1041,"stargazers_count":3411,"watchers_count":3411,"language":"Ruby","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":509,"mirror_url":null,"open_issues_count":141,"forks":509,"open_issues":141,"watchers":3411,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/administrate/pulls/843"},"html":{"href":"https://github.com/thoughtbot/administrate/pull/843"},"issue":{"href":"https://api.github.com/repos/thoughtbot/administrate/issues/843"},"comments":{"href":"https://api.github.com/repos/thoughtbot/administrate/issues/843/comments"},"review_comments":{"href":"https://api.github.com/repos/thoughtbot/administrate/pulls/843/comments"},"review_comment":{"href":"https://api.github.com/repos/thoughtbot/administrate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thoughtbot/administrate/pulls/843/commits"},"statuses":{"href":"https://api.github.com/repos/thoughtbot/administrate/statuses/91ea5854d67e615b39efcc8badec644715382d90"}}}}
{"actor":{"display_login":"houndci-bot"}}