Sha256: 1e2c69d9d0555609dbb0a5bcc0bde71a12a399d2721ef63d4c593644d3adbaac

Contents?: true

Size: 383 Bytes

Versions: 24

Compression:

Stored size: 383 Bytes

Contents

module Hydra::Works
  # Allows a FileSet to treat the version history of the original_file as the FileSet's version history
  module VersionedContent
    def content_versions
      original_file.versions.all
    end

    def latest_content_version
      original_file.versions.last
    end

    def current_content_version_uri
      original_file.versions.last.uri
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
hydra-works-2.2.0 lib/hydra/works/models/concerns/file_set/versioned_content.rb
hydra-works-2.1.0 lib/hydra/works/models/concerns/file_set/versioned_content.rb
hydra-works-2.0.0 lib/hydra/works/models/concerns/file_set/versioned_content.rb
hydra-works-1.2.0 lib/hydra/works/models/concerns/file_set/versioned_content.rb
hydra-works-1.1.0 lib/hydra/works/models/concerns/file_set/versioned_content.rb
hydra-works-1.0.0 lib/hydra/works/models/concerns/file_set/versioned_content.rb
hydra-works-0.17.0 lib/hydra/works/models/concerns/file_set/versioned_content.rb
hydra-works-0.16.0 lib/hydra/works/models/concerns/file_set/versioned_content.rb
hydra-works-0.15.0 lib/hydra/works/models/concerns/file_set/versioned_content.rb
hydra-works-0.12.1 lib/hydra/works/models/concerns/file_set/versioned_content.rb
hydra-works-0.14.0 lib/hydra/works/models/concerns/file_set/versioned_content.rb
hydra-works-0.13.0 lib/hydra/works/models/concerns/file_set/versioned_content.rb
hydra-works-0.12.0 lib/hydra/works/models/concerns/file_set/versioned_content.rb
hydra-works-0.11.0 lib/hydra/works/models/concerns/file_set/versioned_content.rb
hydra-works-0.10.0 lib/hydra/works/models/concerns/file_set/versioned_content.rb
hydra-works-0.9.0 lib/hydra/works/models/concerns/file_set/versioned_content.rb
hydra-works-0.8.1 lib/hydra/works/models/concerns/file_set/versioned_content.rb
hydra-works-0.8 lib/hydra/works/models/concerns/file_set/versioned_content.rb
hydra-works-0.7.1 lib/hydra/works/models/concerns/file_set/versioned_content.rb
hydra-works-0.7.0 lib/hydra/works/models/concerns/file_set/versioned_content.rb