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



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

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



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

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