mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
Remove deprecated code
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# DEPRECATED: This thin wrapper remains only for backward compatibility.
|
||||
# Business logic has moved into `SimplefinItem::Unlinking` (model concern).
|
||||
# Prefer calling `item.unlink_all!(dry_run: ...)` directly.
|
||||
class SimplefinItem::Unlinker
|
||||
attr_reader :item, :dry_run
|
||||
|
||||
def initialize(item, dry_run: false)
|
||||
@item = item
|
||||
@dry_run = dry_run
|
||||
end
|
||||
|
||||
def unlink_all!
|
||||
item.unlink_all!(dry_run: dry_run)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user