Module: Hydra::Works::VersionedContent
- Defined in:
- lib/hydra/works/models/concerns/file_set/versioned_content.rb
Overview
Allows a FileSet to treat the version history of the original_file as the FileSet’s version history
Instance Method Summary collapse
Instance Method Details
#content_versions ⇒ Object
4 5 6 |
# 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 ⇒ Object
12 13 14 |
# 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 ⇒ Object
8 9 10 |
# File 'lib/hydra/works/models/concerns/file_set/versioned_content.rb', line 8 def latest_content_version original_file.versions.last end |