{"action":"created","comment":{"url":"https://api.github.com/repos/activeadmin/activeadmin/pulls/comments/25820943","id":25820943,"diff_hunk":"@@ -1,5 +1,27 @@\n ActiveAdmin.register <%= class_name %> do\n+<% if options.include_boilerplate? %>\n+# Limit actions available to your users by adding them to the 'except' array\n+# actions :all, except: []\n \n+# Add or remove filters (you can use any ActiveRecord scope) to toggle their\n+# visibility in the sidebar\n+<%= @boilerplate.filters %>","path":"lib/generators/active_admin/resource/templates/admin.rb","position":8,"original_position":8,"commit_id":"a18627437e8751c7ac4c602acefa504988f7e005","original_commit_id":"a18627437e8751c7ac4c602acefa504988f7e005","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"unexpected token tIVAR","created_at":"2015-03-04T22:25:54Z","updated_at":"2015-03-04T22:25:54Z","html_url":"https://github.com/activeadmin/activeadmin/pull/3825#discussion_r25820943","pull_request_url":"https://api.github.com/repos/activeadmin/activeadmin/pulls/3825","_links":{"self":{"href":"https://api.github.com/repos/activeadmin/activeadmin/pulls/comments/25820943"},"html":{"href":"https://github.com/activeadmin/activeadmin/pull/3825#discussion_r25820943"},"pull_request":{"href":"https://api.github.com/repos/activeadmin/activeadmin/pulls/3825"}}},"pull_request":{"url":"https://api.github.com/repos/activeadmin/activeadmin/pulls/3825","id":30229899,"html_url":"https://github.com/activeadmin/activeadmin/pull/3825","diff_url":"https://github.com/activeadmin/activeadmin/pull/3825.diff","patch_url":"https://github.com/activeadmin/activeadmin/pull/3825.patch","issue_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3825","number":3825,"state":"open","locked":false,"title":"Proof of Concept for Optional Boilerplate","user":{"login":"ccallebs","id":397982,"avatar_url":"https://avatars.githubusercontent.com/u/397982?v=3","gravatar_id":"","url":"https://api.github.com/users/ccallebs","html_url":"https://github.com/ccallebs","followers_url":"https://api.github.com/users/ccallebs/followers","following_url":"https://api.github.com/users/ccallebs/following{/other_user}","gists_url":"https://api.github.com/users/ccallebs/gists{/gist_id}","starred_url":"https://api.github.com/users/ccallebs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccallebs/subscriptions","organizations_url":"https://api.github.com/users/ccallebs/orgs","repos_url":"https://api.github.com/users/ccallebs/repos","events_url":"https://api.github.com/users/ccallebs/events{/privacy}","received_events_url":"https://api.github.com/users/ccallebs/received_events","type":"User","site_admin":false},"body":"Proof of concept branch for #3807 \r\n\r\n@timoschilling Is this something we want to pursue? Will output the following (as-is, I imagine we would want to change the copy):\r\n\r\n``` RUBY\r\nActiveAdmin.register Post do\r\n\r\n# Available Filters\r\n#\r\n# filter :id\r\n# filter :title\r\n# filter :body\r\n# filter :published_at\r\n# filter :author\r\n# filter :position\r\n# filter :custom_category\r\n# filter :starred\r\n# filter :foo\r\n# filter :created_at\r\n# filter :updated_at\r\n\r\n# Sample Index\r\n#\r\n# index do\r\n#   selectable_column\r\n#   id_column\r\n#   column :id\r\n#   column :title\r\n#   column :body\r\n#   column :published_at\r\n#   column :author\r\n#   column :position\r\n#   column :custom_category\r\n#   column :starred\r\n#   column :foo\r\n#   column :created_at\r\n#   column :updated_at\r\n#   actions\r\n# end\r\nend\r\n```\r\n\r\nOf course, this wouldn't be enabled by default. The syntax could be something like `rails g active_admin:resource --include-boilerplate`","created_at":"2015-02-28T19:58:48Z","updated_at":"2015-03-04T22:25:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a5edb46d4639fbcca5d41177d4337cd4749be659","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/activeadmin/activeadmin/pulls/3825/commits","review_comments_url":"https://api.github.com/repos/activeadmin/activeadmin/pulls/3825/comments","review_comment_url":"https://api.github.com/repos/activeadmin/activeadmin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3825/comments","statuses_url":"https://api.github.com/repos/activeadmin/activeadmin/statuses/a18627437e8751c7ac4c602acefa504988f7e005","head":{"label":"ccallebs:3807-add-optional-boilerplate","ref":"3807-add-optional-boilerplate","sha":"a18627437e8751c7ac4c602acefa504988f7e005","user":{"login":"ccallebs","id":397982,"avatar_url":"https://avatars.githubusercontent.com/u/397982?v=3","gravatar_id":"","url":"https://api.github.com/users/ccallebs","html_url":"https://github.com/ccallebs","followers_url":"https://api.github.com/users/ccallebs/followers","following_url":"https://api.github.com/users/ccallebs/following{/other_user}","gists_url":"https://api.github.com/users/ccallebs/gists{/gist_id}","starred_url":"https://api.github.com/users/ccallebs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccallebs/subscriptions","organizations_url":"https://api.github.com/users/ccallebs/orgs","repos_url":"https://api.github.com/users/ccallebs/repos","events_url":"https://api.github.com/users/ccallebs/events{/privacy}","received_events_url":"https://api.github.com/users/ccallebs/received_events","type":"User","site_admin":false},"repo":{"id":21989209,"name":"active_admin","full_name":"ccallebs/active_admin","owner":{"login":"ccallebs","id":397982,"avatar_url":"https://avatars.githubusercontent.com/u/397982?v=3","gravatar_id":"","url":"https://api.github.com/users/ccallebs","html_url":"https://github.com/ccallebs","followers_url":"https://api.github.com/users/ccallebs/followers","following_url":"https://api.github.com/users/ccallebs/following{/other_user}","gists_url":"https://api.github.com/users/ccallebs/gists{/gist_id}","starred_url":"https://api.github.com/users/ccallebs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccallebs/subscriptions","organizations_url":"https://api.github.com/users/ccallebs/orgs","repos_url":"https://api.github.com/users/ccallebs/repos","events_url":"https://api.github.com/users/ccallebs/events{/privacy}","received_events_url":"https://api.github.com/users/ccallebs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ccallebs/active_admin","description":"The administration framework for Ruby on Rails applications.","fork":true,"url":"https://api.github.com/repos/ccallebs/active_admin","forks_url":"https://api.github.com/repos/ccallebs/active_admin/forks","keys_url":"https://api.github.com/repos/ccallebs/active_admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ccallebs/active_admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ccallebs/active_admin/teams","hooks_url":"https://api.github.com/repos/ccallebs/active_admin/hooks","issue_events_url":"https://api.github.com/repos/ccallebs/active_admin/issues/events{/number}","events_url":"https://api.github.com/repos/ccallebs/active_admin/events","assignees_url":"https://api.github.com/repos/ccallebs/active_admin/assignees{/user}","branches_url":"https://api.github.com/repos/ccallebs/active_admin/branches{/branch}","tags_url":"https://api.github.com/repos/ccallebs/active_admin/tags","blobs_url":"https://api.github.com/repos/ccallebs/active_admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ccallebs/active_admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ccallebs/active_admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/ccallebs/active_admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ccallebs/active_admin/statuses/{sha}","languages_url":"https://api.github.com/repos/ccallebs/active_admin/languages","stargazers_url":"https://api.github.com/repos/ccallebs/active_admin/stargazers","contributors_url":"https://api.github.com/repos/ccallebs/active_admin/contributors","subscribers_url":"https://api.github.com/repos/ccallebs/active_admin/subscribers","subscription_url":"https://api.github.com/repos/ccallebs/active_admin/subscription","commits_url":"https://api.github.com/repos/ccallebs/active_admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/ccallebs/active_admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/ccallebs/active_admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/ccallebs/active_admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/ccallebs/active_admin/contents/{+path}","compare_url":"https://api.github.com/repos/ccallebs/active_admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ccallebs/active_admin/merges","archive_url":"https://api.github.com/repos/ccallebs/active_admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ccallebs/active_admin/downloads","issues_url":"https://api.github.com/repos/ccallebs/active_admin/issues{/number}","pulls_url":"https://api.github.com/repos/ccallebs/active_admin/pulls{/number}","milestones_url":"https://api.github.com/repos/ccallebs/active_admin/milestones{/number}","notifications_url":"https://api.github.com/repos/ccallebs/active_admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ccallebs/active_admin/labels{/name}","releases_url":"https://api.github.com/repos/ccallebs/active_admin/releases{/id}","created_at":"2014-07-18T17:51:17Z","updated_at":"2015-02-28T19:25:50Z","pushed_at":"2015-03-04T22:25:44Z","git_url":"git://github.com/ccallebs/active_admin.git","ssh_url":"git@github.com:ccallebs/active_admin.git","clone_url":"https://github.com/ccallebs/active_admin.git","svn_url":"https://github.com/ccallebs/active_admin","homepage":"activeadmin.info","size":7089,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":false,"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":"activeadmin:master","ref":"master","sha":"7fe4ccb44da425a40438bee9516ed8d2ae87cd13","user":{"login":"activeadmin","id":814570,"avatar_url":"https://avatars.githubusercontent.com/u/814570?v=3","gravatar_id":"","url":"https://api.github.com/users/activeadmin","html_url":"https://github.com/activeadmin","followers_url":"https://api.github.com/users/activeadmin/followers","following_url":"https://api.github.com/users/activeadmin/following{/other_user}","gists_url":"https://api.github.com/users/activeadmin/gists{/gist_id}","starred_url":"https://api.github.com/users/activeadmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activeadmin/subscriptions","organizations_url":"https://api.github.com/users/activeadmin/orgs","repos_url":"https://api.github.com/users/activeadmin/repos","events_url":"https://api.github.com/users/activeadmin/events{/privacy}","received_events_url":"https://api.github.com/users/activeadmin/received_events","type":"Organization","site_admin":false},"repo":{"id":611921,"name":"activeadmin","full_name":"activeadmin/activeadmin","owner":{"login":"activeadmin","id":814570,"avatar_url":"https://avatars.githubusercontent.com/u/814570?v=3","gravatar_id":"","url":"https://api.github.com/users/activeadmin","html_url":"https://github.com/activeadmin","followers_url":"https://api.github.com/users/activeadmin/followers","following_url":"https://api.github.com/users/activeadmin/following{/other_user}","gists_url":"https://api.github.com/users/activeadmin/gists{/gist_id}","starred_url":"https://api.github.com/users/activeadmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activeadmin/subscriptions","organizations_url":"https://api.github.com/users/activeadmin/orgs","repos_url":"https://api.github.com/users/activeadmin/repos","events_url":"https://api.github.com/users/activeadmin/events{/privacy}","received_events_url":"https://api.github.com/users/activeadmin/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/activeadmin/activeadmin","description":"The administration framework for Ruby on Rails applications.","fork":false,"url":"https://api.github.com/repos/activeadmin/activeadmin","forks_url":"https://api.github.com/repos/activeadmin/activeadmin/forks","keys_url":"https://api.github.com/repos/activeadmin/activeadmin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/activeadmin/activeadmin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/activeadmin/activeadmin/teams","hooks_url":"https://api.github.com/repos/activeadmin/activeadmin/hooks","issue_events_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/events{/number}","events_url":"https://api.github.com/repos/activeadmin/activeadmin/events","assignees_url":"https://api.github.com/repos/activeadmin/activeadmin/assignees{/user}","branches_url":"https://api.github.com/repos/activeadmin/activeadmin/branches{/branch}","tags_url":"https://api.github.com/repos/activeadmin/activeadmin/tags","blobs_url":"https://api.github.com/repos/activeadmin/activeadmin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/activeadmin/activeadmin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/activeadmin/activeadmin/git/refs{/sha}","trees_url":"https://api.github.com/repos/activeadmin/activeadmin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/activeadmin/activeadmin/statuses/{sha}","languages_url":"https://api.github.com/repos/activeadmin/activeadmin/languages","stargazers_url":"https://api.github.com/repos/activeadmin/activeadmin/stargazers","contributors_url":"https://api.github.com/repos/activeadmin/activeadmin/contributors","subscribers_url":"https://api.github.com/repos/activeadmin/activeadmin/subscribers","subscription_url":"https://api.github.com/repos/activeadmin/activeadmin/subscription","commits_url":"https://api.github.com/repos/activeadmin/activeadmin/commits{/sha}","git_commits_url":"https://api.github.com/repos/activeadmin/activeadmin/git/commits{/sha}","comments_url":"https://api.github.com/repos/activeadmin/activeadmin/comments{/number}","issue_comment_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/comments{/number}","contents_url":"https://api.github.com/repos/activeadmin/activeadmin/contents/{+path}","compare_url":"https://api.github.com/repos/activeadmin/activeadmin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/activeadmin/activeadmin/merges","archive_url":"https://api.github.com/repos/activeadmin/activeadmin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/activeadmin/activeadmin/downloads","issues_url":"https://api.github.com/repos/activeadmin/activeadmin/issues{/number}","pulls_url":"https://api.github.com/repos/activeadmin/activeadmin/pulls{/number}","milestones_url":"https://api.github.com/repos/activeadmin/activeadmin/milestones{/number}","notifications_url":"https://api.github.com/repos/activeadmin/activeadmin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/activeadmin/activeadmin/labels{/name}","releases_url":"https://api.github.com/repos/activeadmin/activeadmin/releases{/id}","created_at":"2010-04-15T14:26:03Z","updated_at":"2015-03-04T20:38:49Z","pushed_at":"2015-03-04T20:38:49Z","git_url":"git://github.com/activeadmin/activeadmin.git","ssh_url":"git@github.com:activeadmin/activeadmin.git","clone_url":"https://github.com/activeadmin/activeadmin.git","svn_url":"https://github.com/activeadmin/activeadmin","homepage":"activeadmin.info","size":18549,"stargazers_count":5746,"watchers_count":5746,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":2059,"mirror_url":null,"open_issues_count":188,"forks":2059,"open_issues":188,"watchers":5746,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/activeadmin/activeadmin/pulls/3825"},"html":{"href":"https://github.com/activeadmin/activeadmin/pull/3825"},"issue":{"href":"https://api.github.com/repos/activeadmin/activeadmin/issues/3825"},"comments":{"href":"https://api.github.com/repos/activeadmin/activeadmin/issues/3825/comments"},"review_comments":{"href":"https://api.github.com/repos/activeadmin/activeadmin/pulls/3825/comments"},"review_comment":{"href":"https://api.github.com/repos/activeadmin/activeadmin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/activeadmin/activeadmin/pulls/3825/commits"},"statuses":{"href":"https://api.github.com/repos/activeadmin/activeadmin/statuses/a18627437e8751c7ac4c602acefa504988f7e005"}}}}