We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfbf616 commit 512fc62Copy full SHA for 512fc62
app/models/spree/user.rb
@@ -3,21 +3,12 @@
3
module Spree
4
class User < Spree::Base
5
include UserMethods
6
+ include Spree::SoftDeletable
7
8
devise :database_authenticatable, :registerable, :recoverable,
9
:rememberable, :trackable, :validatable, :encryptable
10
devise :confirmable if Spree::Auth::Config[:confirmable]
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
21
after_destroy :scramble_email_and_password
22
after_discard :scramble_email_and_password
23
0 commit comments