Skip to content

Commit 512fc62

Browse files
author
Jonathan Tapia
committed
Fix autoload issue on Solidus v3.1.0
1 parent bfbf616 commit 512fc62

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

app/models/spree/user.rb

+1-10
Original file line numberDiff line numberDiff line change
@@ -3,21 +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-
self.discard_column = :deleted_at
19-
end
20-
2112
after_destroy :scramble_email_and_password
2213
after_discard :scramble_email_and_password
2314

0 commit comments

Comments
 (0)