Module: Spree::ParanoiaDeprecations::ClassMethods

Defined in:
lib/spree/paranoia_deprecations.rb

Instance Method Summary collapse

Instance Method Details

#only_deletedObject



32
33
34
35
36
37
38
# File 'lib/spree/paranoia_deprecations.rb', line 32

def only_deleted
  Spree::Deprecation.warn "    \#{self}.only_deleted has been deprecated. Use \#{self}.discarded instead.\n    In Solidus 3.0, paranoia will be removed, and this method will be replaced by \#{self}.discarded.\n  WARN\n  super\nend\n", caller

#with_deletedObject



24
25
26
27
28
29
30
# File 'lib/spree/paranoia_deprecations.rb', line 24

def with_deleted
  Spree::Deprecation.warn "    \#{self}.with_deleted has been deprecated. Use \#{self}.with_discarded instead.\n    In Solidus 3.0, paranoia will be removed, and this method will be replaced by \#{self}.with_discarded.\n  WARN\n  super\nend\n", caller