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

Add a Basic Container association #1073

Merged
merged 1 commit into from
May 9, 2016
Merged

Add a Basic Container association #1073

merged 1 commit into from
May 9, 2016

Conversation

jcoyne
Copy link
Member

@jcoyne jcoyne commented May 7, 2016

No description provided.

#
# example:
# class FooHistory < ActiveFedora::Base
# directly_contains :files, has_member_relation:
Copy link
Member

Choose a reason for hiding this comment

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

Is this comment accurate for is_a_container?

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated. Thanks.

record.base_path_for_resource = owner.uri.to_s
super
end
end
Copy link
Member Author

Choose a reason for hiding this comment

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

This is missing destroy_all

Copy link
Member Author

Choose a reason for hiding this comment

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

Added to the superclass.

@cbeer cbeer merged commit cb27774 into master May 9, 2016
@cbeer cbeer deleted the basic_containment branch May 9, 2016 14:27
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.

3 participants