Skip to content

Commit

Permalink
Fix autoload issue on Solidus v3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Tapia committed Jul 26, 2022
1 parent bfbf616 commit 512fc62
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions app/models/spree/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,12 @@
module Spree
class User < Spree::Base
include UserMethods
include Spree::SoftDeletable

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

if defined?(Spree::SoftDeletable)
include Spree::SoftDeletable
else
acts_as_paranoid
include Spree::ParanoiaDeprecations

include Discard::Model
self.discard_column = :deleted_at
end

after_destroy :scramble_email_and_password
after_discard :scramble_email_and_password

Expand Down

0 comments on commit 512fc62

Please sign in to comment.