Skip to content

Commit

Permalink
remove deprecated #to_sipity_entity
Browse files Browse the repository at this point in the history
we now have a global caster
  • Loading branch information
tamsin johnson authored and dlpierce committed Mar 24, 2023
1 parent 656f0ca commit 9f7b2c6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions app/models/concerns/hyrax/suppressible.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,5 @@ module Suppressible
def suppressed?
Hyrax::ResourceStatus.new(resource: self).inactive?
end

##
# @deprecated Use `Sipity::Entity(entity)` instead.
def to_sipity_entity
Deprecation.warn "Use `Sipity::Entity(entity)` instead."
raise "Can't create an entity until the model has been persisted" unless persisted?
@sipity_entity ||= Sipity::Entity(to_global_id)
end
end
end

0 comments on commit 9f7b2c6

Please sign in to comment.