Sha256: 73a16fd1334fb6c1322dc9b75cc83c41d5099bbcc98b7f2de1c504fb62326ce8

Contents?: true

Size: 999 Bytes

Versions: 2

Compression:

Stored size: 999 Bytes

Contents

module CurationConcerns
  module FileSetBehavior
    extend ActiveSupport::Concern
    include Hydra::Works::FileSetBehavior
    include Hydra::Works::VirusCheck
    include Hydra::Works::Characterization
    include Hydra::WithDepositor
    include CurationConcerns::Serializers
    include CurationConcerns::Noid
    include CurationConcerns::FileSet::Derivatives
    include CurationConcerns::Permissions
    include CurationConcerns::BasicMetadata
    include CurationConcerns::FileSet::FullTextIndexing
    include CurationConcerns::FileSet::Indexing
    include CurationConcerns::FileSet::BelongsToWorks
    include CurationConcerns::FileSet::BelongsToUploadSets
    include CurationConcerns::HumanReadableType
    include Hydra::AccessControls::Embargoable

    included do
      attr_accessor :file
    end

    def human_readable_type
      self.class.to_s.demodulize.titleize
    end

    def representative_id
      to_param
    end

    def thumbnail_id
      to_param
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
curation_concerns-models-0.3.0 app/models/concerns/curation_concerns/file_set_behavior.rb
curation_concerns-models-0.2.0 app/models/concerns/curation_concerns/file_set_behavior.rb