Sha256: a60c4fe3b4b21ca51a73fb56aa2cdf049b8679224cef5e8044d67bfb00494b8b

Contents?: true

Size: 782 Bytes

Versions: 2

Compression:

Stored size: 782 Bytes

Contents

module Hydra::Works
  # Typically used for very generic applications that don't differntiate
  # between specific content types. If you want a specific type of work
  # extend Active::Fedora base and include the following:
  #  include Hydra::Works::WorkBehavior
  class GenericWork < ActiveFedora::Base
    include Hydra::Works::WorkBehavior

    # @deprecated Base class for creating objects that behave like Hydra::Works::GenericWorks
    class Base < ActiveFedora::Base
      extend Deprecation
      after_initialize :deprecated_warning
      include Hydra::Works::WorkBehavior

      def deprecated_warning
        Deprecation.warn(Base, "GenericWork is deprecated and will be removed in Hydra::Works 0.4.0. Use Hydra::Works::GenericWork instead")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hydra-works-0.4.0 lib/hydra/works/models/generic_work.rb
hydra-works-0.3.0 lib/hydra/works/models/generic_work.rb