Module: Spree::ParanoiaDeprecations

Included in:
PaymentMethod, Price, Product, PromotionAction, ShippingMethod, StockItem, StoreCredit, StoreCreditEvent, TaxRate, Variant
Defined in:
lib/spree/paranoia_deprecations.rb

Instance Method Summary collapse

Instance Method Details

#paranoia_deleteObject



13
14
15
16
17
18
19
# File 'lib/spree/paranoia_deprecations.rb', line 13

def paranoia_delete
  Spree::Deprecation.warn "    Calling #delete (or #paranoia_delete) on a \#{self.class} currently performs a soft-destroy using the paranoia gem.\n    In Solidus 3.0, paranoia will be removed, and this will perform a HARD destroy instead. To continue soft-deleting, use #discard instead.\n  WARN\n  super\nend\n".strip_heredoc, caller

#paranoia_destroyObject



5
6
7
8
9
10
11
# File 'lib/spree/paranoia_deprecations.rb', line 5

def paranoia_destroy
  Spree::Deprecation.warn "    Calling #destroy (or #paranoia_destroy) on a \#{self.class} currently performs a soft-destroy using the paranoia gem.\n    In Solidus 3.0, paranoia will be removed, and this will perform a HARD destroy instead. To continue soft-deleting, use #discard instead.\n  WARN\n  super\nend\n".strip_heredoc, caller