Module: Spree::ParanoiaDeprecations

Included in:
PaymentMethod, Price, Product, PromotionAction, ShippingMethod, StockItem, StoreCredit, StoreCreditEvent, TaxCategory, 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 <<-WARN.strip_heredoc, caller
    Calling #delete (or #paranoia_delete) on a #{self.class} currently performs a soft-destroy using the paranoia gem.
    In Solidus 3.0, paranoia will be removed, and this will perform a HARD destroy instead. To continue soft-deleting, use #discard instead.
  WARN
  super
end

#paranoia_destroyObject



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

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