Module: Spree::ParanoiaDeprecations::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#only_deletedObject



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

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

#with_deletedObject



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

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