{"action":"created","comment":{"url":"https://api.github.com/repos/projecthydra-labs/hydra-works/pulls/comments/53631311","id":53631311,"diff_hunk":"@@ -21,6 +21,15 @@ module CollectionBehavior\n       type [Hydra::PCDM::Vocab::PCDMTerms.Collection, Vocab::WorksTerms.Collection]\n     end\n \n+    module ClassMethods\n+      def type_validator\n+        Hydra::PCDM::Validators::CompositeValidator.new(","path":"lib/hydra/works/models/concerns/collection_behavior.rb","position":6,"original_position":6,"commit_id":"18f4aaa464fe614fd1959fe0be8dbb3619b46a40","original_commit_id":"18f4aaa464fe614fd1959fe0be8dbb3619b46a40","user":{"login":"escowles","id":856924,"avatar_url":"https://avatars.githubusercontent.com/u/856924?v=3","gravatar_id":"","url":"https://api.github.com/users/escowles","html_url":"https://github.com/escowles","followers_url":"https://api.github.com/users/escowles/followers","following_url":"https://api.github.com/users/escowles/following{/other_user}","gists_url":"https://api.github.com/users/escowles/gists{/gist_id}","starred_url":"https://api.github.com/users/escowles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/escowles/subscriptions","organizations_url":"https://api.github.com/users/escowles/orgs","repos_url":"https://api.github.com/users/escowles/repos","events_url":"https://api.github.com/users/escowles/events{/privacy}","received_events_url":"https://api.github.com/users/escowles/received_events","type":"User","site_admin":false},"body":"Can you just add the new validator to the `validators` array?  Maybe after making sure it's not nil?","created_at":"2016-02-22T14:29:15Z","updated_at":"2016-02-22T14:29:15Z","html_url":"https://github.com/projecthydra-labs/hydra-works/pull/270#discussion_r53631311","pull_request_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/pulls/270","_links":{"self":{"href":"https://api.github.com/repos/projecthydra-labs/hydra-works/pulls/comments/53631311"},"html":{"href":"https://github.com/projecthydra-labs/hydra-works/pull/270#discussion_r53631311"},"pull_request":{"href":"https://api.github.com/repos/projecthydra-labs/hydra-works/pulls/270"}}},"pull_request":{"url":"https://api.github.com/repos/projecthydra-labs/hydra-works/pulls/270","id":58512857,"html_url":"https://github.com/projecthydra-labs/hydra-works/pull/270","diff_url":"https://github.com/projecthydra-labs/hydra-works/pull/270.diff","patch_url":"https://github.com/projecthydra-labs/hydra-works/pull/270.patch","issue_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/issues/270","number":270,"state":"open","locked":false,"title":"[WIP] Collections should not allow FileSets as members. Refs #257","user":{"login":"mjgiarlo","id":131982,"avatar_url":"https://avatars.githubusercontent.com/u/131982?v=3","gravatar_id":"","url":"https://api.github.com/users/mjgiarlo","html_url":"https://github.com/mjgiarlo","followers_url":"https://api.github.com/users/mjgiarlo/followers","following_url":"https://api.github.com/users/mjgiarlo/following{/other_user}","gists_url":"https://api.github.com/users/mjgiarlo/gists{/gist_id}","starred_url":"https://api.github.com/users/mjgiarlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjgiarlo/subscriptions","organizations_url":"https://api.github.com/users/mjgiarlo/orgs","repos_url":"https://api.github.com/users/mjgiarlo/repos","events_url":"https://api.github.com/users/mjgiarlo/events{/privacy}","received_events_url":"https://api.github.com/users/mjgiarlo/received_events","type":"User","site_admin":false},"body":"**DO NOT MERGE** Work in progress.","created_at":"2016-02-06T05:56:26Z","updated_at":"2016-02-22T14:29:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"664ef9e8bc032c60bfd394801a6a732c5362ccd4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/pulls/270/commits","review_comments_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/pulls/270/comments","review_comment_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/issues/270/comments","statuses_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/statuses/18f4aaa464fe614fd1959fe0be8dbb3619b46a40","head":{"label":"projecthydra-labs:validate_collection_membership","ref":"validate_collection_membership","sha":"18f4aaa464fe614fd1959fe0be8dbb3619b46a40","user":{"login":"projecthydra-labs","id":7377013,"avatar_url":"https://avatars.githubusercontent.com/u/7377013?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra-labs","html_url":"https://github.com/projecthydra-labs","followers_url":"https://api.github.com/users/projecthydra-labs/followers","following_url":"https://api.github.com/users/projecthydra-labs/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra-labs/subscriptions","organizations_url":"https://api.github.com/users/projecthydra-labs/orgs","repos_url":"https://api.github.com/users/projecthydra-labs/repos","events_url":"https://api.github.com/users/projecthydra-labs/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":24871990,"name":"hydra-works","full_name":"projecthydra-labs/hydra-works","owner":{"login":"projecthydra-labs","id":7377013,"avatar_url":"https://avatars.githubusercontent.com/u/7377013?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra-labs","html_url":"https://github.com/projecthydra-labs","followers_url":"https://api.github.com/users/projecthydra-labs/followers","following_url":"https://api.github.com/users/projecthydra-labs/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra-labs/subscriptions","organizations_url":"https://api.github.com/users/projecthydra-labs/orgs","repos_url":"https://api.github.com/users/projecthydra-labs/repos","events_url":"https://api.github.com/users/projecthydra-labs/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projecthydra-labs/hydra-works","description":"A PCDM-based domain model for Hydra centering on the concept of describable works.","fork":false,"url":"https://api.github.com/repos/projecthydra-labs/hydra-works","forks_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/forks","keys_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/teams","hooks_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/hooks","issue_events_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/issues/events{/number}","events_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/events","assignees_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/assignees{/user}","branches_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/branches{/branch}","tags_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/tags","blobs_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/git/refs{/sha}","trees_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/statuses/{sha}","languages_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/languages","stargazers_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/stargazers","contributors_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/contributors","subscribers_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/subscribers","subscription_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/subscription","commits_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/commits{/sha}","git_commits_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/git/commits{/sha}","comments_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/comments{/number}","issue_comment_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/issues/comments{/number}","contents_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/contents/{+path}","compare_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/merges","archive_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/downloads","issues_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/issues{/number}","pulls_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/pulls{/number}","milestones_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/milestones{/number}","notifications_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/labels{/name}","releases_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/releases{/id}","deployments_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/deployments","created_at":"2014-10-07T01:09:07Z","updated_at":"2016-02-03T22:48:00Z","pushed_at":"2016-02-06T06:30:38Z","git_url":"git://github.com/projecthydra-labs/hydra-works.git","ssh_url":"git@github.com:projecthydra-labs/hydra-works.git","clone_url":"https://github.com/projecthydra-labs/hydra-works.git","svn_url":"https://github.com/projecthydra-labs/hydra-works","homepage":"","size":92137,"stargazers_count":19,"watchers_count":19,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":22,"forks":12,"open_issues":22,"watchers":19,"default_branch":"master"}},"base":{"label":"projecthydra-labs:master","ref":"master","sha":"27cafe99e79a724e7933064c0bb16192e292072e","user":{"login":"projecthydra-labs","id":7377013,"avatar_url":"https://avatars.githubusercontent.com/u/7377013?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra-labs","html_url":"https://github.com/projecthydra-labs","followers_url":"https://api.github.com/users/projecthydra-labs/followers","following_url":"https://api.github.com/users/projecthydra-labs/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra-labs/subscriptions","organizations_url":"https://api.github.com/users/projecthydra-labs/orgs","repos_url":"https://api.github.com/users/projecthydra-labs/repos","events_url":"https://api.github.com/users/projecthydra-labs/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":24871990,"name":"hydra-works","full_name":"projecthydra-labs/hydra-works","owner":{"login":"projecthydra-labs","id":7377013,"avatar_url":"https://avatars.githubusercontent.com/u/7377013?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra-labs","html_url":"https://github.com/projecthydra-labs","followers_url":"https://api.github.com/users/projecthydra-labs/followers","following_url":"https://api.github.com/users/projecthydra-labs/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra-labs/subscriptions","organizations_url":"https://api.github.com/users/projecthydra-labs/orgs","repos_url":"https://api.github.com/users/projecthydra-labs/repos","events_url":"https://api.github.com/users/projecthydra-labs/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projecthydra-labs/hydra-works","description":"A PCDM-based domain model for Hydra centering on the concept of describable works.","fork":false,"url":"https://api.github.com/repos/projecthydra-labs/hydra-works","forks_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/forks","keys_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/teams","hooks_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/hooks","issue_events_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/issues/events{/number}","events_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/events","assignees_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/assignees{/user}","branches_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/branches{/branch}","tags_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/tags","blobs_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/git/refs{/sha}","trees_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/statuses/{sha}","languages_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/languages","stargazers_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/stargazers","contributors_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/contributors","subscribers_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/subscribers","subscription_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/subscription","commits_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/commits{/sha}","git_commits_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/git/commits{/sha}","comments_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/comments{/number}","issue_comment_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/issues/comments{/number}","contents_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/contents/{+path}","compare_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/merges","archive_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/downloads","issues_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/issues{/number}","pulls_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/pulls{/number}","milestones_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/milestones{/number}","notifications_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/labels{/name}","releases_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/releases{/id}","deployments_url":"https://api.github.com/repos/projecthydra-labs/hydra-works/deployments","created_at":"2014-10-07T01:09:07Z","updated_at":"2016-02-03T22:48:00Z","pushed_at":"2016-02-06T06:30:38Z","git_url":"git://github.com/projecthydra-labs/hydra-works.git","ssh_url":"git@github.com:projecthydra-labs/hydra-works.git","clone_url":"https://github.com/projecthydra-labs/hydra-works.git","svn_url":"https://github.com/projecthydra-labs/hydra-works","homepage":"","size":92137,"stargazers_count":19,"watchers_count":19,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":22,"forks":12,"open_issues":22,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projecthydra-labs/hydra-works/pulls/270"},"html":{"href":"https://github.com/projecthydra-labs/hydra-works/pull/270"},"issue":{"href":"https://api.github.com/repos/projecthydra-labs/hydra-works/issues/270"},"comments":{"href":"https://api.github.com/repos/projecthydra-labs/hydra-works/issues/270/comments"},"review_comments":{"href":"https://api.github.com/repos/projecthydra-labs/hydra-works/pulls/270/comments"},"review_comment":{"href":"https://api.github.com/repos/projecthydra-labs/hydra-works/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projecthydra-labs/hydra-works/pulls/270/commits"},"statuses":{"href":"https://api.github.com/repos/projecthydra-labs/hydra-works/statuses/18f4aaa464fe614fd1959fe0be8dbb3619b46a40"}}}}