module Hydra::Works::VersionedContent
Allows a FileSet
to treat the version history of the original_file as the FileSet's version history
Public Instance Methods
content_versions()
click to toggle source
# File lib/hydra/works/models/concerns/file_set/versioned_content.rb, line 4 def content_versions original_file.versions.all end
current_content_version_uri()
click to toggle source
# File lib/hydra/works/models/concerns/file_set/versioned_content.rb, line 12 def current_content_version_uri original_file.versions.last.uri end
latest_content_version()
click to toggle source
# File lib/hydra/works/models/concerns/file_set/versioned_content.rb, line 8 def latest_content_version original_file.versions.last end