Sha256: 5b39d889607785d6de2d2e08dfaf2c228bc7a2da6e8ff4fc389187b4722fed49

Contents?: true

Size: 673 Bytes

Versions: 21

Compression:

Stored size: 673 Bytes

Contents

require "active-fedora"
require_relative '../hydra-mods_article_datastream.rb'

# This Model is used to load & index the test:fixture_mods_article1 fixture for use in tests.
#
# See lib/samples/sample_thing.rb for a fuller, annotated example of an ActiveFedora Model
class ModsArticle < ActiveFedora::Base
  # Mute deprecation of has_metadata
  @original_behavior = Deprecation.default_deprecation_behavior
  Deprecation.default_deprecation_behavior = :silence
  has_metadata name: "descMetadata", type: Hydra::ModsArticleDatastream
  has_metadata name: "properties", type: ActiveFedora::SimpleDatastream
  Deprecation.default_deprecation_behavior = @original_behavior
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
active-fedora-9.7.3 spec/samples/models/mods_article.rb
active-fedora-9.7.2 spec/samples/models/mods_article.rb
active-fedora-9.13.0 spec/samples/models/mods_article.rb
active-fedora-9.12.0 spec/samples/models/mods_article.rb
active-fedora-9.11.0 spec/samples/models/mods_article.rb
active-fedora-9.10.4 spec/samples/models/mods_article.rb
active-fedora-9.10.3 spec/samples/models/mods_article.rb
active-fedora-9.10.2 spec/samples/models/mods_article.rb
active-fedora-9.10.1 spec/samples/models/mods_article.rb
active-fedora-9.10.0 spec/samples/models/mods_article.rb
active-fedora-9.10.0.pre2 spec/samples/models/mods_article.rb
active-fedora-9.10.0.pre1 spec/samples/models/mods_article.rb
active-fedora-9.9.1 spec/samples/models/mods_article.rb
active-fedora-9.9.0 spec/samples/models/mods_article.rb
active-fedora-9.8.2 spec/samples/models/mods_article.rb
active-fedora-9.8.1 spec/samples/models/mods_article.rb
active-fedora-9.8.0 spec/samples/models/mods_article.rb
active-fedora-9.7.1 spec/samples/models/mods_article.rb
active-fedora-9.7.0 spec/samples/models/mods_article.rb
active-fedora-9.6.2 spec/samples/models/mods_article.rb