Module: Spree::ParanoiaDeprecations::InstanceMethods

Defined in:
core/lib/spree/paranoia_deprecations.rb

Instance Method Summary collapse

Instance Method Details

#paranoia_deleteObject



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

def paranoia_delete
  Spree::Deprecation.warn <<~WARN, 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



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

def paranoia_destroy
  Spree::Deprecation.warn <<~WARN, 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