Skip to content

Commit

Permalink
Revert last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyshields committed Sep 18, 2023
1 parent a9b73d9 commit 930ae90
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/mongoid/slug.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,7 @@ def slug(*fields, &block)
if __slug_paranoid_doc? # rubocop:disable Style/GuardClause
set_callback :destroy, :after, :unset_slug!
set_callback :restore, :before, :set_slug!
# TODO investigate if this should be used
# set_callback :save, :before, :clear_slug!, if: :slug_paranoid_deleted?
set_callback :save, :before, :reset_slug!, if: :paranoid_deleted?
set_callback :save, :after, :clear_slug!, if: :paranoid_deleted?
set_callback :save, :before, :clear_slug!, if: :slug_paranoid_deleted?
end
end

Expand Down

0 comments on commit 930ae90

Please sign in to comment.