Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Needs Review) implements directly_contains_one association #816

Merged
merged 1 commit into from
Jun 24, 2015

Conversation

flyingzumwalt
Copy link
Member

Note: part of this functionality is blocked by #794

@flyingzumwalt
Copy link
Member Author

@jcoyne @terrellt I'm not in love with this code, but I need this feature in order to proceed with samvera/hydra-works#131

@jcoyne
Copy link
Member

jcoyne commented Jun 24, 2015

Looks like this depends on #794? So should we wait until that is fixed?

@flyingzumwalt
Copy link
Member Author

directly_contains_one doesn't rely on #794 any more than directly_contains and indirectly_contains, which are already in master. I'd like to proceed with adding directly_contains_one so I can continue work on curation_concerns & sufia-core.

super

if !options[:has_member_relation] && !options[:is_member_of_relation]
raise ArgumentError, "You must specify a predicate for #{name}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This error message is a bit misleading. Can is say, specify has_member_relation or is_member_of_relation?

@flyingzumwalt flyingzumwalt force-pushed the directly_contains_one_association branch 2 times, most recently from 116aff7 to 2ce78fd Compare June 24, 2015 16:03
Note: part of this functionality is blocked by #794
@flyingzumwalt flyingzumwalt force-pushed the directly_contains_one_association branch from 2ce78fd to 9746594 Compare June 24, 2015 16:08
jcoyne added a commit that referenced this pull request Jun 24, 2015
…iation

(Needs Review) implements directly_contains_one association
@jcoyne jcoyne merged commit caadc73 into master Jun 24, 2015
@jcoyne jcoyne deleted the directly_contains_one_association branch June 24, 2015 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants