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

Allow for sub RDF Sources via contains #901

Merged
merged 1 commit into from
Oct 1, 2015
Merged

Allow for sub RDF Sources via contains #901

merged 1 commit into from
Oct 1, 2015

Conversation

tpendragon
Copy link
Contributor

I'll squash this when it's okay - for now it shows a refactor route.

@tpendragon
Copy link
Contributor Author

A side-note - this may get us close to a fix for #858


module ActiveFedora
class AssociationHash
extend Forwardable
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does this extend Forwardable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No idea. As far as I can tell it doesn't use it - was brought over from FilesHash. I could remove it, but I'm not sure what the project's policy on refactors + feature requests in one PR is.

Copy link
Member

Choose a reason for hiding this comment

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

Unless @jcoyne voices an objection, I'd say dump it. It's a new file, so meh.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, dump it.

@jcoyne
Copy link
Member

jcoyne commented Sep 29, 2015

Do we really want to make a clear distinction between attached files and child_resources? I'd prefer we handle them in the same way if possible.

@tpendragon
Copy link
Contributor Author

@jcoyne Can you take another look? Did some work to combine handling files and nested rdf sources.

@tpendragon
Copy link
Contributor Author

Rebased/Squashed

@@ -20,7 +20,7 @@ def each
private

def convert(id)
if id.start_with?("http")
Copy link
Member

Choose a reason for hiding this comment

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

Please add YARD documentation on the parameter please

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For the private method?

@tpendragon tpendragon force-pushed the sub_resources branch 2 times, most recently from 9524539 to cfa0f65 Compare October 1, 2015 17:31
jcoyne added a commit that referenced this pull request Oct 1, 2015
Allow for sub RDF Sources via contains
@jcoyne jcoyne merged commit dd378a3 into master Oct 1, 2015
@jcoyne jcoyne removed the in progress label Oct 1, 2015
@jcoyne jcoyne deleted the sub_resources branch October 1, 2015 18:48
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.

4 participants