Skip to content

Commit 3fb1685

Browse files
authored
Merge pull request #223 from jtapia/chore/solidus-v.3.1.0-fix
Move to Spree::SoftDeletable on users model
2 parents 5a8d695 + cd13355 commit 3fb1685

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

app/models/spree/user.rb

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,12 @@
33
module Spree
44
class User < Spree::Base
55
include UserMethods
6+
include Spree::SoftDeletable
67

78
devise :database_authenticatable, :registerable, :recoverable,
89
:rememberable, :trackable, :validatable, :encryptable
910
devise :confirmable if Spree::Auth::Config[:confirmable]
1011

11-
if defined?(Spree::SoftDeletable)
12-
include Spree::SoftDeletable
13-
else
14-
acts_as_paranoid
15-
include Spree::ParanoiaDeprecations
16-
17-
include Discard::Model
18-
19-
self.discard_column = :deleted_at
20-
end
21-
2212
after_destroy :scramble_email_and_password
2313
after_discard :scramble_email_and_password
2414

0 commit comments

Comments
 (0)