{"action":"created","comment":{"url":"https://api.github.com/repos/spartansystems/raygun-rails-template/pulls/comments/54293440","id":54293440,"diff_hunk":"@@ -0,0 +1,30 @@\n+class ContactFormComponent < AtomicAssets::Component\n+  def edit\n+    rtn = cms_fields(field_types)\n+    rtn << h.component(:contact_form, field_previews).render\n+    rtn.html_safe\n+  end\n+\n+  protected\n+\n+  def field_previews\n+    {\n+      title: \"{{preview.title}}\",\n+      type: \"{{preview.type}}\",\n+      button_text: \"{{preview.button_text}}\",\n+      margin: \"{{preview.margin}}\",\n+      description: \"{{preview.description}}\"\n+\n+    }\n+  end\n+\n+  def field_types","path":"app/components/contact_form_component.rb","position":21,"original_position":21,"commit_id":"b4e3d0fdaefbe44bbeb04520d70ddc1bf141010e","original_commit_id":"b4e3d0fdaefbe44bbeb04520d70ddc1bf141010e","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":"Metrics/MethodLength: Method has too many lines. [7/5]","created_at":"2016-02-26T19:55:56Z","updated_at":"2016-02-26T19:55:56Z","html_url":"https://github.com/spartansystems/raygun-rails-template/pull/51#discussion_r54293440","pull_request_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/pulls/51","_links":{"self":{"href":"https://api.github.com/repos/spartansystems/raygun-rails-template/pulls/comments/54293440"},"html":{"href":"https://github.com/spartansystems/raygun-rails-template/pull/51#discussion_r54293440"},"pull_request":{"href":"https://api.github.com/repos/spartansystems/raygun-rails-template/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/spartansystems/raygun-rails-template/pulls/51","id":60891069,"html_url":"https://github.com/spartansystems/raygun-rails-template/pull/51","diff_url":"https://github.com/spartansystems/raygun-rails-template/pull/51.diff","patch_url":"https://github.com/spartansystems/raygun-rails-template/pull/51.patch","issue_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/issues/51","number":51,"state":"open","locked":false,"title":"Default components","user":{"login":"sonofabear","id":1260937,"avatar_url":"https://avatars.githubusercontent.com/u/1260937?v=3","gravatar_id":"","url":"https://api.github.com/users/sonofabear","html_url":"https://github.com/sonofabear","followers_url":"https://api.github.com/users/sonofabear/followers","following_url":"https://api.github.com/users/sonofabear/following{/other_user}","gists_url":"https://api.github.com/users/sonofabear/gists{/gist_id}","starred_url":"https://api.github.com/users/sonofabear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonofabear/subscriptions","organizations_url":"https://api.github.com/users/sonofabear/orgs","repos_url":"https://api.github.com/users/sonofabear/repos","events_url":"https://api.github.com/users/sonofabear/events{/privacy}","received_events_url":"https://api.github.com/users/sonofabear/received_events","type":"User","site_admin":false},"body":"Why? Because we need some default components for building raygun templates.\r\n\r\nAdded 5 components:\r\n-Banner\r\n-Text\r\n-CTA\r\n-Contact\r\n-Card List\r\n\r\nAlso added some mixins, default styling, and more goodies to help get a new project off the ground faster.","created_at":"2016-02-26T19:29:22Z","updated_at":"2016-02-26T19:55:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ba75e066e23a7156c3c4eed13b8ef85519c4070b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/pulls/51/commits","review_comments_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/pulls/51/comments","review_comment_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/issues/51/comments","statuses_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/statuses/b4e3d0fdaefbe44bbeb04520d70ddc1bf141010e","head":{"label":"spartansystems:default_components","ref":"default_components","sha":"b4e3d0fdaefbe44bbeb04520d70ddc1bf141010e","user":{"login":"spartansystems","id":5521793,"avatar_url":"https://avatars.githubusercontent.com/u/5521793?v=3","gravatar_id":"","url":"https://api.github.com/users/spartansystems","html_url":"https://github.com/spartansystems","followers_url":"https://api.github.com/users/spartansystems/followers","following_url":"https://api.github.com/users/spartansystems/following{/other_user}","gists_url":"https://api.github.com/users/spartansystems/gists{/gist_id}","starred_url":"https://api.github.com/users/spartansystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spartansystems/subscriptions","organizations_url":"https://api.github.com/users/spartansystems/orgs","repos_url":"https://api.github.com/users/spartansystems/repos","events_url":"https://api.github.com/users/spartansystems/events{/privacy}","received_events_url":"https://api.github.com/users/spartansystems/received_events","type":"Organization","site_admin":false},"repo":{"id":45819638,"name":"raygun-rails-template","full_name":"spartansystems/raygun-rails-template","owner":{"login":"spartansystems","id":5521793,"avatar_url":"https://avatars.githubusercontent.com/u/5521793?v=3","gravatar_id":"","url":"https://api.github.com/users/spartansystems","html_url":"https://github.com/spartansystems","followers_url":"https://api.github.com/users/spartansystems/followers","following_url":"https://api.github.com/users/spartansystems/following{/other_user}","gists_url":"https://api.github.com/users/spartansystems/gists{/gist_id}","starred_url":"https://api.github.com/users/spartansystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spartansystems/subscriptions","organizations_url":"https://api.github.com/users/spartansystems/orgs","repos_url":"https://api.github.com/users/spartansystems/repos","events_url":"https://api.github.com/users/spartansystems/events{/privacy}","received_events_url":"https://api.github.com/users/spartansystems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spartansystems/raygun-rails-template","description":"A rails template app that is setup with raygun","fork":false,"url":"https://api.github.com/repos/spartansystems/raygun-rails-template","forks_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/forks","keys_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/teams","hooks_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/hooks","issue_events_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/issues/events{/number}","events_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/events","assignees_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/assignees{/user}","branches_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/branches{/branch}","tags_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/tags","blobs_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/git/refs{/sha}","trees_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/statuses/{sha}","languages_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/languages","stargazers_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/stargazers","contributors_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/contributors","subscribers_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/subscribers","subscription_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/subscription","commits_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/commits{/sha}","git_commits_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/git/commits{/sha}","comments_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/comments{/number}","issue_comment_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/issues/comments{/number}","contents_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/contents/{+path}","compare_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/merges","archive_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/downloads","issues_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/issues{/number}","pulls_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/pulls{/number}","milestones_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/milestones{/number}","notifications_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/labels{/name}","releases_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/releases{/id}","deployments_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/deployments","created_at":"2015-11-09T06:31:16Z","updated_at":"2016-01-18T18:39:10Z","pushed_at":"2016-02-26T19:41:50Z","git_url":"git://github.com/spartansystems/raygun-rails-template.git","ssh_url":"git@github.com:spartansystems/raygun-rails-template.git","clone_url":"https://github.com/spartansystems/raygun-rails-template.git","svn_url":"https://github.com/spartansystems/raygun-rails-template","homepage":null,"size":117,"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":7,"forks":0,"open_issues":7,"watchers":1,"default_branch":"master"}},"base":{"label":"spartansystems:master","ref":"master","sha":"f2a438e45155585e417a004a82020c9570724bf8","user":{"login":"spartansystems","id":5521793,"avatar_url":"https://avatars.githubusercontent.com/u/5521793?v=3","gravatar_id":"","url":"https://api.github.com/users/spartansystems","html_url":"https://github.com/spartansystems","followers_url":"https://api.github.com/users/spartansystems/followers","following_url":"https://api.github.com/users/spartansystems/following{/other_user}","gists_url":"https://api.github.com/users/spartansystems/gists{/gist_id}","starred_url":"https://api.github.com/users/spartansystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spartansystems/subscriptions","organizations_url":"https://api.github.com/users/spartansystems/orgs","repos_url":"https://api.github.com/users/spartansystems/repos","events_url":"https://api.github.com/users/spartansystems/events{/privacy}","received_events_url":"https://api.github.com/users/spartansystems/received_events","type":"Organization","site_admin":false},"repo":{"id":45819638,"name":"raygun-rails-template","full_name":"spartansystems/raygun-rails-template","owner":{"login":"spartansystems","id":5521793,"avatar_url":"https://avatars.githubusercontent.com/u/5521793?v=3","gravatar_id":"","url":"https://api.github.com/users/spartansystems","html_url":"https://github.com/spartansystems","followers_url":"https://api.github.com/users/spartansystems/followers","following_url":"https://api.github.com/users/spartansystems/following{/other_user}","gists_url":"https://api.github.com/users/spartansystems/gists{/gist_id}","starred_url":"https://api.github.com/users/spartansystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spartansystems/subscriptions","organizations_url":"https://api.github.com/users/spartansystems/orgs","repos_url":"https://api.github.com/users/spartansystems/repos","events_url":"https://api.github.com/users/spartansystems/events{/privacy}","received_events_url":"https://api.github.com/users/spartansystems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spartansystems/raygun-rails-template","description":"A rails template app that is setup with raygun","fork":false,"url":"https://api.github.com/repos/spartansystems/raygun-rails-template","forks_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/forks","keys_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/teams","hooks_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/hooks","issue_events_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/issues/events{/number}","events_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/events","assignees_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/assignees{/user}","branches_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/branches{/branch}","tags_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/tags","blobs_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/git/refs{/sha}","trees_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/statuses/{sha}","languages_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/languages","stargazers_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/stargazers","contributors_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/contributors","subscribers_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/subscribers","subscription_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/subscription","commits_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/commits{/sha}","git_commits_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/git/commits{/sha}","comments_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/comments{/number}","issue_comment_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/issues/comments{/number}","contents_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/contents/{+path}","compare_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/merges","archive_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/downloads","issues_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/issues{/number}","pulls_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/pulls{/number}","milestones_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/milestones{/number}","notifications_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/labels{/name}","releases_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/releases{/id}","deployments_url":"https://api.github.com/repos/spartansystems/raygun-rails-template/deployments","created_at":"2015-11-09T06:31:16Z","updated_at":"2016-01-18T18:39:10Z","pushed_at":"2016-02-26T19:41:50Z","git_url":"git://github.com/spartansystems/raygun-rails-template.git","ssh_url":"git@github.com:spartansystems/raygun-rails-template.git","clone_url":"https://github.com/spartansystems/raygun-rails-template.git","svn_url":"https://github.com/spartansystems/raygun-rails-template","homepage":null,"size":117,"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":7,"forks":0,"open_issues":7,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spartansystems/raygun-rails-template/pulls/51"},"html":{"href":"https://github.com/spartansystems/raygun-rails-template/pull/51"},"issue":{"href":"https://api.github.com/repos/spartansystems/raygun-rails-template/issues/51"},"comments":{"href":"https://api.github.com/repos/spartansystems/raygun-rails-template/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/spartansystems/raygun-rails-template/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/spartansystems/raygun-rails-template/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spartansystems/raygun-rails-template/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/spartansystems/raygun-rails-template/statuses/b4e3d0fdaefbe44bbeb04520d70ddc1bf141010e"}}}}