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

Move file_url from the viewer to the file model #1559

Merged
merged 1 commit into from
Oct 18, 2023
Merged

Conversation

jcoyne
Copy link
Contributor

@jcoyne jcoyne commented Oct 18, 2023

This makes it possible to use the method in more places and more consistently

Comment on lines -6 to +16
def initialize(resource, rights)
# @param [String] druid identifier without a namespace
# @param [Nokogiri::XML::Element] resource
# @param [Dor::RightsAuth] rights
def initialize(druid, resource, rights)
@druid = druid
@resource = resource
@rights = rights
end

attr_reader :druid

Copy link
Member

Choose a reason for hiding this comment

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

can we not pick the druid out of the resource XML? I'd assume it'd be in there somewhere

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is not.

This makes it possible to use the method in more places and more consistently
@thatbudakguy thatbudakguy merged commit 53f7799 into main Oct 18, 2023
@thatbudakguy thatbudakguy deleted the move-file-url branch October 18, 2023 16:01
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.

2 participants