Class: UsesDefaultPartials
- Inherits:
-
ActiveFedora::Base
- Object
- ActiveFedora::Base
- UsesDefaultPartials
- Includes:
- Hydra::ModelMethods, Hydra::ModelMixins::CommonMetadata
- Defined in:
- app/models/uses_default_partials.rb
Overview
TODO: Move TO test_support this model exists largely to exercise the default partials for models that don’t have their own
that is, if an (active)fedora object uses the ModsAsset model, then hydra-head will use partials in views/mods_assets to display those objects
however, if an (active)fedora object uses a model without its own partials in the views folder, then hydra-head will use views/catalog/xxx to display those objects.
a Fedora object for the Hypatia SET hydra content type
Instance Method Summary collapse
-
#initialize ⇒ UsesDefaultPartials
constructor
A new instance of UsesDefaultPartials.
Constructor Details
#initialize ⇒ UsesDefaultPartials
Returns a new instance of UsesDefaultPartials.
8 9 10 11 |
# File 'app/models/uses_default_partials.rb', line 8 def initialize ActiveSupport::Deprecation.warn("UsesDefaultPartials is for testing only. It will be moved into test_support") super end |