We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5a8d695 + cd13355 commit 3fb1685Copy full SHA for 3fb1685
app/models/spree/user.rb
@@ -3,22 +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
19
- self.discard_column = :deleted_at
20
- end
21
22
after_destroy :scramble_email_and_password
23
after_discard :scramble_email_and_password
24
0 commit comments