Skip to content

Commit

Permalink
Merge pull request #6374 from samvera/deprecated-af
Browse files Browse the repository at this point in the history
Deprecate use of ActiveFedora and Wings
  • Loading branch information
abelemlih authored Oct 20, 2023
2 parents 18283d3 + ebe4222 commit 07e858d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/wings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# However, these dependencies should be considered temprorary: this code will
# be deprecated for removal in a future release.
#
# @deprecated Wings will be removed when ActiveFedora is no longer supported by Hyrax.
#
# @example casting an ActiveFedora model to Valkyrie
# work = GenericWork.create(title: ['Comet in Moominland'])
# resource = work.valkyrie_resource
Expand Down Expand Up @@ -56,6 +58,9 @@
# @see https://wiki.duraspace.org/display/samvera/Hyrax-Valkyrie+Development+Working+Group
# for further context regarding the approach
module Wings
Deprecation.warn(self, "ActiveFedora and Wings will be removed from a future major release of Hyrax in favor " \
"of Valkyrie resource models. Please migrate your models from ActiveFedora::Base to Hyrax::Resource.")

##
# @api public
#
Expand Down

0 comments on commit 07e858d

Please sign in to comment.