{"action":"created","comment":{"url":"https://api.github.com/repos/g5search/g5-content-management-system/pulls/comments/36686081","id":36686081,"diff_hunk":"@@ -36,5 +40,6 @@ def set_defaults\n     self.javascripts ||= []\n     self.layouts ||= []\n     self.private_clients ||= []\n+    self.verticals ||= []","path":"app/models/garden_web_theme.rb","position":24,"original_position":24,"commit_id":"4e722aa0edfee485ad6cddfaf3d33c79181ed8d5","original_commit_id":"4e722aa0edfee485ad6cddfaf3d33c79181ed8d5","user":{"login":"jcstringer","id":456695,"avatar_url":"https://avatars.githubusercontent.com/u/456695?v=3","gravatar_id":"","url":"https://api.github.com/users/jcstringer","html_url":"https://github.com/jcstringer","followers_url":"https://api.github.com/users/jcstringer/followers","following_url":"https://api.github.com/users/jcstringer/following{/other_user}","gists_url":"https://api.github.com/users/jcstringer/gists{/gist_id}","starred_url":"https://api.github.com/users/jcstringer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcstringer/subscriptions","organizations_url":"https://api.github.com/users/jcstringer/orgs","repos_url":"https://api.github.com/users/jcstringer/repos","events_url":"https://api.github.com/users/jcstringer/events{/privacy}","received_events_url":"https://api.github.com/users/jcstringer/received_events","type":"User","site_admin":false},"body":"Do you actually need this set_defaults logic at all? I would think that if you have serialize on the attribute with Array as the second arg, Rails would default it to an empty array for you and you could remove the set_defaults callback entirely. ","created_at":"2015-08-10T21:19:46Z","updated_at":"2015-08-10T21:19:46Z","html_url":"https://github.com/g5search/g5-content-management-system/pull/772#discussion_r36686081","pull_request_url":"https://api.github.com/repos/g5search/g5-content-management-system/pulls/772","_links":{"self":{"href":"https://api.github.com/repos/g5search/g5-content-management-system/pulls/comments/36686081"},"html":{"href":"https://github.com/g5search/g5-content-management-system/pull/772#discussion_r36686081"},"pull_request":{"href":"https://api.github.com/repos/g5search/g5-content-management-system/pulls/772"}}},"pull_request":{"url":"https://api.github.com/repos/g5search/g5-content-management-system/pulls/772","id":41918970,"html_url":"https://github.com/g5search/g5-content-management-system/pull/772","diff_url":"https://github.com/g5search/g5-content-management-system/pull/772.diff","patch_url":"https://github.com/g5search/g5-content-management-system/pull/772.patch","issue_url":"https://api.github.com/repos/g5search/g5-content-management-system/issues/772","number":772,"state":"open","locked":false,"title":"2.x.x theme ids","user":{"login":"lance-hardy","id":472942,"avatar_url":"https://avatars.githubusercontent.com/u/472942?v=3","gravatar_id":"","url":"https://api.github.com/users/lance-hardy","html_url":"https://github.com/lance-hardy","followers_url":"https://api.github.com/users/lance-hardy/followers","following_url":"https://api.github.com/users/lance-hardy/following{/other_user}","gists_url":"https://api.github.com/users/lance-hardy/gists{/gist_id}","starred_url":"https://api.github.com/users/lance-hardy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lance-hardy/subscriptions","organizations_url":"https://api.github.com/users/lance-hardy/orgs","repos_url":"https://api.github.com/users/lance-hardy/repos","events_url":"https://api.github.com/users/lance-hardy/events{/privacy}","received_events_url":"https://api.github.com/users/lance-hardy/received_events","type":"User","site_admin":false},"body":"deleted hi-rise theme\r\nreordered theme ids\r\nrenamed some themes per product instructions","created_at":"2015-08-07T18:19:39Z","updated_at":"2015-08-10T21:19:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9354c87cde539eddea9c2b4d8a7df477e682ae77","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/g5search/g5-content-management-system/pulls/772/commits","review_comments_url":"https://api.github.com/repos/g5search/g5-content-management-system/pulls/772/comments","review_comment_url":"https://api.github.com/repos/g5search/g5-content-management-system/pulls/comments{/number}","comments_url":"https://api.github.com/repos/g5search/g5-content-management-system/issues/772/comments","statuses_url":"https://api.github.com/repos/g5search/g5-content-management-system/statuses/4e722aa0edfee485ad6cddfaf3d33c79181ed8d5","head":{"label":"g5search:2.x.x-theme-ids","ref":"2.x.x-theme-ids","sha":"4e722aa0edfee485ad6cddfaf3d33c79181ed8d5","user":{"login":"g5search","id":187079,"avatar_url":"https://avatars.githubusercontent.com/u/187079?v=3","gravatar_id":"","url":"https://api.github.com/users/g5search","html_url":"https://github.com/g5search","followers_url":"https://api.github.com/users/g5search/followers","following_url":"https://api.github.com/users/g5search/following{/other_user}","gists_url":"https://api.github.com/users/g5search/gists{/gist_id}","starred_url":"https://api.github.com/users/g5search/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g5search/subscriptions","organizations_url":"https://api.github.com/users/g5search/orgs","repos_url":"https://api.github.com/users/g5search/repos","events_url":"https://api.github.com/users/g5search/events{/privacy}","received_events_url":"https://api.github.com/users/g5search/received_events","type":"Organization","site_admin":false},"repo":{"id":6274404,"name":"g5-content-management-system","full_name":"g5search/g5-content-management-system","owner":{"login":"g5search","id":187079,"avatar_url":"https://avatars.githubusercontent.com/u/187079?v=3","gravatar_id":"","url":"https://api.github.com/users/g5search","html_url":"https://github.com/g5search","followers_url":"https://api.github.com/users/g5search/followers","following_url":"https://api.github.com/users/g5search/following{/other_user}","gists_url":"https://api.github.com/users/g5search/gists{/gist_id}","starred_url":"https://api.github.com/users/g5search/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g5search/subscriptions","organizations_url":"https://api.github.com/users/g5search/orgs","repos_url":"https://api.github.com/users/g5search/repos","events_url":"https://api.github.com/users/g5search/events{/privacy}","received_events_url":"https://api.github.com/users/g5search/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/g5search/g5-content-management-system","description":"Consumes g5-configurator's feed, creates and updates g5-client-location sites, updates a g5-client-hub-deployer","fork":false,"url":"https://api.github.com/repos/g5search/g5-content-management-system","forks_url":"https://api.github.com/repos/g5search/g5-content-management-system/forks","keys_url":"https://api.github.com/repos/g5search/g5-content-management-system/keys{/key_id}","collaborators_url":"https://api.github.com/repos/g5search/g5-content-management-system/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/g5search/g5-content-management-system/teams","hooks_url":"https://api.github.com/repos/g5search/g5-content-management-system/hooks","issue_events_url":"https://api.github.com/repos/g5search/g5-content-management-system/issues/events{/number}","events_url":"https://api.github.com/repos/g5search/g5-content-management-system/events","assignees_url":"https://api.github.com/repos/g5search/g5-content-management-system/assignees{/user}","branches_url":"https://api.github.com/repos/g5search/g5-content-management-system/branches{/branch}","tags_url":"https://api.github.com/repos/g5search/g5-content-management-system/tags","blobs_url":"https://api.github.com/repos/g5search/g5-content-management-system/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/g5search/g5-content-management-system/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/g5search/g5-content-management-system/git/refs{/sha}","trees_url":"https://api.github.com/repos/g5search/g5-content-management-system/git/trees{/sha}","statuses_url":"https://api.github.com/repos/g5search/g5-content-management-system/statuses/{sha}","languages_url":"https://api.github.com/repos/g5search/g5-content-management-system/languages","stargazers_url":"https://api.github.com/repos/g5search/g5-content-management-system/stargazers","contributors_url":"https://api.github.com/repos/g5search/g5-content-management-system/contributors","subscribers_url":"https://api.github.com/repos/g5search/g5-content-management-system/subscribers","subscription_url":"https://api.github.com/repos/g5search/g5-content-management-system/subscription","commits_url":"https://api.github.com/repos/g5search/g5-content-management-system/commits{/sha}","git_commits_url":"https://api.github.com/repos/g5search/g5-content-management-system/git/commits{/sha}","comments_url":"https://api.github.com/repos/g5search/g5-content-management-system/comments{/number}","issue_comment_url":"https://api.github.com/repos/g5search/g5-content-management-system/issues/comments{/number}","contents_url":"https://api.github.com/repos/g5search/g5-content-management-system/contents/{+path}","compare_url":"https://api.github.com/repos/g5search/g5-content-management-system/compare/{base}...{head}","merges_url":"https://api.github.com/repos/g5search/g5-content-management-system/merges","archive_url":"https://api.github.com/repos/g5search/g5-content-management-system/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/g5search/g5-content-management-system/downloads","issues_url":"https://api.github.com/repos/g5search/g5-content-management-system/issues{/number}","pulls_url":"https://api.github.com/repos/g5search/g5-content-management-system/pulls{/number}","milestones_url":"https://api.github.com/repos/g5search/g5-content-management-system/milestones{/number}","notifications_url":"https://api.github.com/repos/g5search/g5-content-management-system/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/g5search/g5-content-management-system/labels{/name}","releases_url":"https://api.github.com/repos/g5search/g5-content-management-system/releases{/id}","created_at":"2012-10-18T07:02:44Z","updated_at":"2015-06-29T16:00:56Z","pushed_at":"2015-08-10T21:16:09Z","git_url":"git://github.com/g5search/g5-content-management-system.git","ssh_url":"git@github.com:g5search/g5-content-management-system.git","clone_url":"https://github.com/g5search/g5-content-management-system.git","svn_url":"https://github.com/g5search/g5-content-management-system","homepage":"http://g5-client-hub.herokuapp.com/","size":36146,"stargazers_count":8,"watchers_count":8,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":29,"forks":6,"open_issues":29,"watchers":8,"default_branch":"master"}},"base":{"label":"g5search:master","ref":"master","sha":"f34c8b7f55a24ee372fdbe7114873cde6fb28acb","user":{"login":"g5search","id":187079,"avatar_url":"https://avatars.githubusercontent.com/u/187079?v=3","gravatar_id":"","url":"https://api.github.com/users/g5search","html_url":"https://github.com/g5search","followers_url":"https://api.github.com/users/g5search/followers","following_url":"https://api.github.com/users/g5search/following{/other_user}","gists_url":"https://api.github.com/users/g5search/gists{/gist_id}","starred_url":"https://api.github.com/users/g5search/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g5search/subscriptions","organizations_url":"https://api.github.com/users/g5search/orgs","repos_url":"https://api.github.com/users/g5search/repos","events_url":"https://api.github.com/users/g5search/events{/privacy}","received_events_url":"https://api.github.com/users/g5search/received_events","type":"Organization","site_admin":false},"repo":{"id":6274404,"name":"g5-content-management-system","full_name":"g5search/g5-content-management-system","owner":{"login":"g5search","id":187079,"avatar_url":"https://avatars.githubusercontent.com/u/187079?v=3","gravatar_id":"","url":"https://api.github.com/users/g5search","html_url":"https://github.com/g5search","followers_url":"https://api.github.com/users/g5search/followers","following_url":"https://api.github.com/users/g5search/following{/other_user}","gists_url":"https://api.github.com/users/g5search/gists{/gist_id}","starred_url":"https://api.github.com/users/g5search/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g5search/subscriptions","organizations_url":"https://api.github.com/users/g5search/orgs","repos_url":"https://api.github.com/users/g5search/repos","events_url":"https://api.github.com/users/g5search/events{/privacy}","received_events_url":"https://api.github.com/users/g5search/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/g5search/g5-content-management-system","description":"Consumes g5-configurator's feed, creates and updates g5-client-location sites, updates a g5-client-hub-deployer","fork":false,"url":"https://api.github.com/repos/g5search/g5-content-management-system","forks_url":"https://api.github.com/repos/g5search/g5-content-management-system/forks","keys_url":"https://api.github.com/repos/g5search/g5-content-management-system/keys{/key_id}","collaborators_url":"https://api.github.com/repos/g5search/g5-content-management-system/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/g5search/g5-content-management-system/teams","hooks_url":"https://api.github.com/repos/g5search/g5-content-management-system/hooks","issue_events_url":"https://api.github.com/repos/g5search/g5-content-management-system/issues/events{/number}","events_url":"https://api.github.com/repos/g5search/g5-content-management-system/events","assignees_url":"https://api.github.com/repos/g5search/g5-content-management-system/assignees{/user}","branches_url":"https://api.github.com/repos/g5search/g5-content-management-system/branches{/branch}","tags_url":"https://api.github.com/repos/g5search/g5-content-management-system/tags","blobs_url":"https://api.github.com/repos/g5search/g5-content-management-system/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/g5search/g5-content-management-system/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/g5search/g5-content-management-system/git/refs{/sha}","trees_url":"https://api.github.com/repos/g5search/g5-content-management-system/git/trees{/sha}","statuses_url":"https://api.github.com/repos/g5search/g5-content-management-system/statuses/{sha}","languages_url":"https://api.github.com/repos/g5search/g5-content-management-system/languages","stargazers_url":"https://api.github.com/repos/g5search/g5-content-management-system/stargazers","contributors_url":"https://api.github.com/repos/g5search/g5-content-management-system/contributors","subscribers_url":"https://api.github.com/repos/g5search/g5-content-management-system/subscribers","subscription_url":"https://api.github.com/repos/g5search/g5-content-management-system/subscription","commits_url":"https://api.github.com/repos/g5search/g5-content-management-system/commits{/sha}","git_commits_url":"https://api.github.com/repos/g5search/g5-content-management-system/git/commits{/sha}","comments_url":"https://api.github.com/repos/g5search/g5-content-management-system/comments{/number}","issue_comment_url":"https://api.github.com/repos/g5search/g5-content-management-system/issues/comments{/number}","contents_url":"https://api.github.com/repos/g5search/g5-content-management-system/contents/{+path}","compare_url":"https://api.github.com/repos/g5search/g5-content-management-system/compare/{base}...{head}","merges_url":"https://api.github.com/repos/g5search/g5-content-management-system/merges","archive_url":"https://api.github.com/repos/g5search/g5-content-management-system/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/g5search/g5-content-management-system/downloads","issues_url":"https://api.github.com/repos/g5search/g5-content-management-system/issues{/number}","pulls_url":"https://api.github.com/repos/g5search/g5-content-management-system/pulls{/number}","milestones_url":"https://api.github.com/repos/g5search/g5-content-management-system/milestones{/number}","notifications_url":"https://api.github.com/repos/g5search/g5-content-management-system/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/g5search/g5-content-management-system/labels{/name}","releases_url":"https://api.github.com/repos/g5search/g5-content-management-system/releases{/id}","created_at":"2012-10-18T07:02:44Z","updated_at":"2015-06-29T16:00:56Z","pushed_at":"2015-08-10T21:16:09Z","git_url":"git://github.com/g5search/g5-content-management-system.git","ssh_url":"git@github.com:g5search/g5-content-management-system.git","clone_url":"https://github.com/g5search/g5-content-management-system.git","svn_url":"https://github.com/g5search/g5-content-management-system","homepage":"http://g5-client-hub.herokuapp.com/","size":36146,"stargazers_count":8,"watchers_count":8,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":29,"forks":6,"open_issues":29,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/g5search/g5-content-management-system/pulls/772"},"html":{"href":"https://github.com/g5search/g5-content-management-system/pull/772"},"issue":{"href":"https://api.github.com/repos/g5search/g5-content-management-system/issues/772"},"comments":{"href":"https://api.github.com/repos/g5search/g5-content-management-system/issues/772/comments"},"review_comments":{"href":"https://api.github.com/repos/g5search/g5-content-management-system/pulls/772/comments"},"review_comment":{"href":"https://api.github.com/repos/g5search/g5-content-management-system/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/g5search/g5-content-management-system/pulls/772/commits"},"statuses":{"href":"https://api.github.com/repos/g5search/g5-content-management-system/statuses/4e722aa0edfee485ad6cddfaf3d33c79181ed8d5"}}}}