Something about the #accepts_nested_metadata_for method finalizes metadata. This is called in ::Hyrax::FileSetBehavior through several includes. This prevents us from calling #accepts_nested_metadata_for before including ::Hyrax::FileSetBehavior, however we still need to include our own metadata before the include.
Splitting the calls to #accepts_nested_metadata_for into a new include allows us to define our own metadata first then finalize it all once ::Hyrax::FileSetBehavior is included.
Something about the
#accepts_nested_metadata_for
method finalizes metadata. This is called in::Hyrax::FileSetBehavior
through several includes. This prevents us from calling#accepts_nested_metadata_for
before including::Hyrax::FileSetBehavior
, however we still need to include our own metadata before the include.Splitting the calls to
#accepts_nested_metadata_for
into a new include allows us to define our own metadata first then finalize it all once::Hyrax::FileSetBehavior
is included.Fixes #2586