Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Commit

Permalink
Drop ActiveFedora 7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Apr 17, 2019
1 parent fb09239 commit 6a4625b
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions lib/dor/models/concerns/identifiable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,19 +133,10 @@ def adapt_to_cmodel
if object_class
instance_of?(object_class) ? self : adapt_to(object_class)
else
if ActiveFedora::VERSION < '8'
result = super
if result.class == Dor::Abstract
adapt_to(Dor::Item)
else
result
end
else
begin
super
rescue ActiveFedora::ModelNotAsserted
adapt_to(Dor::Item)
end
begin
super
rescue ActiveFedora::ModelNotAsserted
adapt_to(Dor::Item)
end
end
end
Expand Down

0 comments on commit 6a4625b

Please sign in to comment.